Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 2004 19:51:40 +0200
From:      Jean-Pierre PARISY <jpparisy@teaser.fr>
To:        <igorpopov@newmail.ru>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: natd and tun
Message-ID:  <200404021751.i32Hpeud071280@chuck.bsdjpp.ath.cx>
In-Reply-To: <20040402073338.26179.qmail@flock1.newmail.ru>
References:  <20040402073338.26179.qmail@flock1.newmail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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