Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jan 2001 22:55:56 -0500
From:      Tim Gustafson <tim@falconsoft.com>
To:        Tom Samplonius <tom@sdf.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Question Re: Multiple Default Gateways
Message-ID:  <5.0.0.25.2.20010103224910.00a58a00@esther.falconsoft.com>
In-Reply-To: <Pine.BSF.4.05.10101031603090.8253-100000@misery.sdf.com>
References:  <5.0.0.25.2.20010103191232.00a57260@esther.falconsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>That isn't how classic TCP and IP routing works.  However, you can use
>the ipfw fwd option to specify that traffic from a particular IP gets
>pushed to a specifed gateway.  Basically, ipfw fwd is way to implement
>policy based routing, which is what you probably want.

Ok.  So here's some more specifics then (just to make sure).

My two networks (and their gateways) are:

216.46.87.192/27  ->  216.46.87.193
64.74.56.160/27   ->  64.74.56.161

So to enable this on the machine, I do this:

# Allow All Local Traffic To Pass Normally
ipfw add allow ip from 216.46.87.192/27 to 216.46.87.192/27
# Forward All Other Traffic To The Router
ipfw add fwd 216.46.87.193 ip from 216.46.87.192/27 to any
# Allow All Local Traffic To Pass Normally
ipfw add allow ip from 64.74.56.160/27 to 64.74.56.160/27
# Forward All Other Traffic To The Router
ipfw add fwd 64.74.56.161 ip from 64.74.56.160/27 to any

Is that correct?  It seems to work, but I'd just like to make sure I'm 
doing it correctly.

Thanks.

Tim


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   Tim Gustafson                          tim@falconsoft.com
   www.falconsoft.com                          (631)475-6662
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   Share your knowledge - it's a way to achieve immortality.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.0.25.2.20010103224910.00a58a00>