LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Which router should i get (https://www.linuxquestions.org/questions/linux-networking-3/which-router-should-i-get-857596/)

methodtwo 01-20-2011 01:03 PM

Which router should i get
 
I need to set up a network at home. The set up i want is as follows:
Code:

|LAN|----|switch|----|linux firewall|-----|switch|------|ADSL/border router|
The problem at the moment is that the Linux firewall has to have it's NICs on different subnets( external(ia dhcp from border router on 192.168.1.*) and it's internal on 192.168.2.*). I can, with the current border router, change the subnetmask to 255.255.0.0 so that it doesn't "mind" dealing with addresses on the two different subnets. However i can't add a route to the internal LAN(192.168.2.*).So the border router only knows that the linux firewall is reached at 192.168.1.*. And there's no way, on this border router, to add a route to 192.168.2.*. So i can't ping the border router from my ubuntu hosts on the LAN. I can ping the linux firewall's internal and external interfaces from the ubuntu hosts on the LAN. But i can't ping the border router from the LAN because it doesn't know how to get to 192.168.2.*.
I need to replace the border router, which is just a home router, with a machine that has all the usual capabilities of a home router/ADSL box AND the capability to add routes to other subnets. IIt needs firewalling capabilities because plugged into the switch(coming out of the ADSL box), in the diagram, are 2 Ubuntu servers. It would also be good if it could do things like changing the subnet mask. As flexible as possible.I'm willing to spend a fair bit i.e less than 200 pounds. The other thing is it's got to be available in the U.K. Off the top of your heads is there any router that you could recommend that is good for a fully UNIX network involving different subnets that could replace a home router.
Or do i need a router that you can install a special Linux on? And if so are there any recommended?.
Thank you so much for your time and any replies. Fare ye well.

stress_junkie 01-21-2011 07:07 AM

I don't believe that you need to purchase more or different equipment. I believe that you simply need to configure your Linux firewall machine as a router.

jschiwal 01-21-2011 07:12 AM

The LAN will use the inside interface's IP of the Linux firewall as the default gateway. The Linux firewall will use the modem as it's default gateway address. As long as forwarding is enabled, your routes in the firewall should be setup for you when you configure the networking.

Run "route" on the firewall to check this. There should be two routes, one for the LAN subnet, and another for the modem.

farslayer 01-21-2011 09:34 PM

Is your router supported by alternate firmware such as DD-WRT ??
I loaded dd-wrt on my Linksys router and can manually add routes, or use one of several different routing protocols such as rip2..

Feel free to explore the other free firmware options as well.

I believe Buffalo even sells routers with dd-wrt preloaded.

more features than you can shake a stick at...


And if you look a bit deeper in their docs you will find routers that can support vlans as well...


All times are GMT -5. The time now is 11:56 PM.