This is a discussion on multiple gateways within the Linux Networking forums, part of the Linux Forums category; Here's what I want to do... I have a Redhat box setup with, eth0 192.168.2.1 aliased ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Here's what I want to do...
I have a Redhat box setup with, eth0 192.168.2.1 aliased also as 10.0.2.2 I have two firewalls which nat in front of the Redhat box, http, dns, etc. Both firewalls are working perfectly. I want the Redhat box to respond through either firewall. What I am getting is timeouts.... If I, route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.1 eth0 it will route out of the 10.0.0.1 firewall, nat works, etc. however, it will time out on the 192.168.2.1 firewall. if I, route add -net 10.0.2.0 netmask 255.0.0.0 gw 10.0.2.1 eth0 It will won't route out the 10.0.2.1 firewall, I would assume because of the 255.0.0.0 netmask... I would also assume if I was coming from a 10.x.x.x network, it should route back to me... anyway.... What the heck do I do to get the linux box to route out either firewall, depending on which brought in the outside connection? As I said, both firewalls work fine... as long as I change the route on the linux box for 0.0.0.0 to either FIREWALL IP. FIREWALL (192.168.2.1) && FIREWALL (10.0.2.1) || || LINUX SERVER FWIW, I have also setup the linux box as 192.168.2.1 and tried to add another route for 0.0.0.0 to 192.168.2.3 (the second FIREWALL, in which i changed all nat & firewall rules, along with the IP to match), it would route alright.... but it wouldn't route back to the original FIREWALL.... Hope I explained this well enough.... I'll watch the thread and try to answer any questions. -- Colonel Flagg http://www.internetwarzone.org/ Privacy at a click: http://www.cotse.net Wanna ask a question in Usenet? http://www.tuxedo.org/~esr/faqs/smart-questions.html Everything about Usenet answered: http://www.internetwarzone.org/answers.html America WILL NOT forget 9-11-01 |