DragonFly BSD
DragonFly users List (threaded) for 2012-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pppoe


From: Francois Tigeot <ftigeot@xxxxxxxxxxxx>
Date: Sat, 24 Mar 2012 08:55:08 +0100

On Sat, Mar 24, 2012 at 10:03:19AM +0400, Andrey N. Oktyabrski wrote:
> On 24.03.12 09:06, Andrey N. Oktyabrski wrote:
> >PF NAT do not work with tun0
> This is not correct: it works but only day or two.

This is normal if your ppp connection does not come with a static IP address.
You should use a rule only specifying the interface name (tun0) in that case;
this one should do the trick:

	nat on $ext_if inet from !($ext_if) -> ($ext_if:0)

The 'inet' keyword prevents pf from nating IPv6 traffic.

-- 
Francois Tigeot



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]