FW: Two ISP connections with Natd
Kirk Davis
Kirk.Davis at epsb.ca
Wed Sep 6 00:33:32 UTC 2006
>
>Dear All,
>
>I am running freebsd as getway for my office. I Just acquired second
Internet last week. I wonder if there >is a way trhough route add -net
and ipfw I can manipulate my traffic in a such way that some traffic to
a >selected network can go through one ISP while the rest goes through
the default gateway. I am using natd and my FreeBSD box has got 3 NICs,
one for internal network and other two for each ISP.
Yes, This can be done. If you are using ipfw and natd then you have to
run two instances of natd (on separate ports), one on each external
interface. The ipfw firewall rules get a little tricky but you have to
create rules to catch the incomming and outgoing traffic through each
external interface and direct it to the right instance of natd. Once
this is done then just direct your routes out the interface that you
want.
---- Kirk
More information about the freebsd-ipfw
mailing list