Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Apr 2004 21:31:19 +0000
From:      Max Laier <max@love2party.net>
To:        freebsd-ipfw@freebsd.org
Cc:        igorpopov@newmail.ru
Subject:   Re: natd and tun
Message-ID:  <200404022131.21654.max@love2party.net>
In-Reply-To: <200404021751.i32Hpeud071280@chuck.bsdjpp.ath.cx>
References:  <20040402073338.26179.qmail@flock1.newmail.ru> <200404021751.i32Hpeud071280@chuck.bsdjpp.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
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@repoman.freebsd.org>
or http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libalias/alias.c#rev1.42

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404022131.21654.max>