natd and tun

Max Laier max at love2party.net
Fri Apr 2 11:30:38 PST 2004


On Friday 02 April 2004 17:51, Jean-Pierre PARISY wrote:
> 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

Note that libalias was broken for a short time. See:
Message-Id: <200404021757.i32Hvv6R058197 at repoman.freebsd.org>
or http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libalias/alias.c#rev1.42

-- 
Best regards,				| mlaier at freebsd.org
Max Laier				| ICQ #67774661
http://pf4freebsd.love2party.net/	| mlaier at EFnet


More information about the freebsd-ipfw mailing list