ipnat+ipfw + 3 gateways

Josh Paetzel friar_josh at tcbug.org
Mon Dec 15 07:06:51 PST 2003


On Mon, Dec 15, 2003 at 08:15:33AM -0800, hugle wrote:
> btw, why should i use forward?
> cause system has ONE deufalt route, so if i nat via otehr interface,
> teh packets don't know to wwhch GW they have to go.
> 
> So maybe i need to add default gateways to other interfaces ?
> 
> so i have:
> default gw is 213.252.192.161
> and default gw for 213.252.192.142 is 213.252.192.141
> and deafult gw for 212.59.9.59 is 212.59.9.1
> 

You can't have more than one default gateway on a FreeBSD box, but you
can add your own static routes.  That looks to me to be the direction 
to go. :)

Josh Paetzel



More information about the freebsd-questions mailing list