IP Routing Question

fbsd_user fbsd_user at a1poweruser.com
Tue Feb 14 06:55:52 PST 2006

You are not correct in that last statement.

ipfilter does not have to be compiled into kernel to work.
You should read the handbook ipfilter firewall section where
it clearly states that is not necessary and tells you how to do it.

-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Goran Gajic
Sent: Tuesday, February 14, 2006 9:44 AM
To: fbsd at douville.net
Cc: freebsd-questions at freebsd.org
Subject: Re: IP Routing Question


You can try using ipf filter to impose source-policy routing:

cat > ipf.example
pass in quick on em1 to em1: from to
ipf -f ipf.example

This way you will re-route all packets coming from source 10.1/16 to
destination a.b.c.d to go to address not to a.b.c.d
Note that you have to rebuild your kernel in order to have options
IPFILTER enabled.


>I'm trying to set up the routing table to force requests to certain
>addresses to use a particular ethernet card. I've used the route
>in a number of
>ways, but still can't come up with how to force to use em1 instead
>with the right gateway.

freebsd-questions at freebsd.org mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"

More information about the freebsd-questions mailing list