On Fri, 2003-11-14 at 12:41, Jason Dixon wrote:

> I'm attempting to create a static route for my FreeBSD host so that
> *all* local traffic is routed across the gateway firewall, rather than
> being delivered on the local network segment, as is the default with
> LANs.  If you view the routing table (below) again, you'll notice that
> traffic from the FreeBSD box (192.168.0.53) to another box on the same
> subnet (192.168.0.42) is still being delivered locally, rather than
> being routed through the gateway (192.168.0.1).  This is *after* I've
> added a static route for 192.168.0.0/24 to use 192.168.0.1.

Sorry for the self-reply, but I noticed some interesting behavior. 
Using the "static_routes" entry in rc.conf, I noticed that the following
has no effect...

static_routes="test"
route_test="-net 192.168.0.0/24 192.168.0.1"

But this works great, on a host-by-host basis...

static_routes="test"
route_test="-host 192.168.0.42/32 192.168.0.1"

Obviously, this doesn't scale.  Can anyone think of a way to override
the local routing behavior?  Thanks!

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to