Bluehost.com Web Hosting $6.95

multiple gateways

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-09-2003
Colonel Flagg
 
Posts: n/a
Default multiple gateways

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0