Routes for interface

Joe Holden joe at joeholden.co.uk
Mon Apr 24 16:08:20 UTC 2006


Ludovit Koren wrote:
> 
> Hi,
> 
> 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? Something like more default routes (it is not good name for
> it, I hope you can understand what I mean), depending on particular
> interface.
> 
> 
> Thanks.
> 
> Regards,
> lk
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

You could probably achieve this using IPFW FWD (this is how I achieve
something similiar). Either using ipfw fwd $GW1 ip from any to any via
$INT1, or using an ip range, ie; ipfw fwd $GW2 ip from 1.2.3.4/24 to any
 or something.

Thanks,
Joe Holden
finger joe at joeholden.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20060424/a1aedbee/signature.pgp


More information about the freebsd-net mailing list