Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2006 15:44:15 +0100 (CET)
From:      Goran Gajic <ggajic@afrodita.rcub.bg.ac.yu>
To:        fbsd@douville.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP Routing Question
Message-ID:  <Pine.LNX.4.63.0602141535130.10886@afrodita.rcub.bg.ac.yu>

next in thread | raw e-mail | index | archive | help


Hi,


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

cat > ipf.example
pass in quick on em1 to em1:192.168.1.2 from 10.1.0.0/16 to  a.b.c.d/32
^d
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 192.168.1.2 not to a.b.c.d
Note that you have to rebuild your kernel in order to have options 
IPFILTER enabled.

Regards,
gg.



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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.63.0602141535130.10886>