Routes for interface

Helge Oldach helge.oldach at
Tue Apr 25 06:19:02 UTC 2006

Ludovit Koren:
>is there any possibility to set the routing statically on a multi-homed
>host so, that the packet is sent back via the same interface, as it has
>came from?

ipfw(4) is your friend, for example on a box with addresses and with respective gateways

00100   31716   3368679 allow ip from to
00200  671653  64044345 fwd ip from to any
00300   59889   3353166 allow ip from to
00400     317     28628 fwd ip from to any
00500 7075682 948430737 allow ip from any to any
65535       0         0 deny ip from any to any


More information about the freebsd-net mailing list