natd and tun

Jean-Pierre PARISY jpparisy at teaser.fr
Fri Apr 2 09:51:44 PST 2004


On Fri, 02 Apr 2004 11:33:37 +0400, ????? ????? ?????????? wrote:

>         Hi, 
> I have a question: would be natd work with tun device? I had already asked 
> this question when FreeBSD 5.2 were released
> Someone have answered to me that I should use ppp builtin nat, because divert 
> sockets doesn't work with tun. Simple rules like this
>         divert all from any to any via tun0
>         allow all from any to any
> did not work.

I'm sure that this works:

# Divert all packets through the tunnel interface.
/sbin/ipfw add 100 divert natd all from any to any via tun0

-- 
There's no Kabal.


More information about the freebsd-ipfw mailing list