On Tue, Mar 07, 2006 at 12:58:59PM +0200, Petre Bandac wrote:
> hallo
>
> I am trying to migrate a dual-homed linux box to freebsd; how can I
> achieve the src routing iproute2 does on freebsd ?
There isn't currently a direct routing equivalent. I "cheat" and use IPF
like so (the IPs are faked):
# source-IP routed traffic
# Note that the "on 'interface'" has to be the one with my default route
pass out quick on hme0 to tun6 from 10.0.0.3/24 to !192.168.0.0/16 keep state
block in on tun6 from any to 10.0.0.3/24 head 200
... group 200 rules follow ...
You can do the same with IPFW and PF.
-T
--
Immobility is often mistaken for peace.
- Emperor Elrood Corrino IX
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"