Router with 2 internet connections

Brian A. Seklecki bseklecki at
Sat Mar 31 22:05:53 UTC 2007

Right.  Since you can only have one default route, you'd to use static
routes out of the second interface make the decision based on
"destination IP address" (layer 3 decision making here).  

To make it based on source address or some layer-4 decision, you'd need
a layer4 switch and/or BGP.

BGP is your best bet.


On Fri, 2007-03-30 at 19:09 -0700, Kevin Glick wrote:
> I've got a BSD router with two internet connections:
>     dc0 (DSL) and dc1 (Cable)
> I also have an internal nic:
>     rl0 (
> I've got PF setup and running nat.  What I need to know is this;
> Can I easily route all outbound traffic from - out
> the dc1 interface, AND route traffic from - out
> the dc0 interface with PF and something else?
> Currently, PF redirects the traffic correctly, however, the traffic from the
> upper block goes out the default route (gateway of dc1).  So the traffic
> never comes back.
> I guess the problem is that I'm sending the nat'd packets out as the IP of
> dc0, but they're being send out dc1.
> Make sense?  Anybody follow this, and have a useful suggestion?
> --
> Kevin Glick
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list