Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2012 10:11:31 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        andrew clarke <mail@ozzmosis.com>
Cc:        FreeBSD questions <questions@freebsd.org>
Subject:   Re: /usr/sbin/ppp doubling connections on tun0
Message-ID:  <50AB3B33.7000104@gmx.com>
In-Reply-To: <20121120004938.GA86793@ozzmosis.com>
References:  <20121120004938.GA86793@ozzmosis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/20/2012 2:49 AM, andrew clarke wrote:
> I'm using /usr/sbin/ppp for PPPoE over an ADSL modem in bridged mode:
>
> # ifconfig tun0
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
>          options=80000<LINKSTATE>
>          inet 203.217.27.170 --> 203.215.15.252 netmask 0xffffffff
>          inet 203.214.46.107 --> 203.215.7.251 netmask 0xffffffff
>          Opened by PID 49158
>
> What would cause this?
>
> Notice the two IP addresses assigned to the same interface. It should
> just have one address assigned.

Yes, I think this is caused by NAT. It seems that this is feature:
>          iface-alias
>              Default: Enabled if -nat is specified.  This option simply tells
>              ppp to add new interface addresses to the interface rather than
>              replacing them.  The option can only be enabled if network
>              address translation is enabled (``nat enable yes'').
>
>              With this option enabled, ppp will pass traffic for old interface
>              addresses through the NAT engine (see libalias(3)), resulting in
>              the ability (in -auto mode) to properly connect the process that
>              caused the PPP link to come up in the first place.
>
>              Disabling NAT with ``nat enable no'' will also disable
>              `iface-alias'.

One could say that it's a surprising one! But, yes, is deliberate.

HTH, Nikos



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