From owner-freebsd-stable@FreeBSD.ORG Fri Oct 10 00:36:26 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C92A6106569D for ; Fri, 10 Oct 2008 00:36:26 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id A05608FC0A for ; Fri, 10 Oct 2008 00:36:26 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id m9A0aMWr065204; Thu, 9 Oct 2008 20:36:22 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id m9A0aMCi078828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Oct 2008 20:36:22 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200810100036.m9A0aMCi078828@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 09 Oct 2008 20:36:14 -0400 To: Andrew D , "Daniel O'Connor" From: Mike Tancsa In-Reply-To: <48EDF787.2010305@webzone.net.au> References: <200810092206.02362.doconnor@gsoft.com.au> <48EDF787.2010305@webzone.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: freebsd-stable@freebsd.org Subject: Re: Userland PPP not deleting old IP on disconnect X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 00:36:27 -0000 At 08:22 AM 10/9/2008, Andrew D wrote: >Hi Fellow Node user :), > >I have the same + similar issue. Hi, What about adding disable iface-alias 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'. >Daniel O'Connor wrote: >>Hi, >>I am using userland PPP to do PPPoE and I am finding that it isn't >>deleting the old IP from tun0 when the link goes down, eg >>Oct 9 22:00:01 midget ppp[53728]: tun0: Phase: deflink: logout -> hangup >>Oct 9 22:00:01 midget ppp[53728]: tun0: Phase: deflink: Connect >>time: 950 secs: 2711068 octets in, 39993514 octets out >>[midget 22:00] ~ >ifconfig tun0 >>tun0: flags=8051 metric 0 mtu 1500 >> inet 121.45.251.180 --> 203.16.215.184 netmask 0xffffffff >> Opened by PID 53728 > >tun0: flags=8051 metric 0 mtu 1492 > inet 121.45.215.128 --> 203.16.215.183 netmask 0xffffffff > inet 121.45.69.26 --> 203.16.215.186 netmask 0xffffffff > Opened by PID 90863 > >The second line only shows up when the gateway is different between >IP assignments from the ISP. I have no idea if this blocks access to >the previous IP, not that it's a major issue. > >uname -a >FreeBSD gateway.abdulla 7.0-STABLE FreeBSD 7.0-STABLE #1: Sat Jun 21 >03:10:37 CST 2008 root@gateway.abdulla:/usr/obj/usr/src/sys/MYKERN i386 > >My ppp setup is almost the same. > >Cheers >cya >Andrew > >>I have the following config.. >>default: >> set device /dev/cuaa0 >> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ >> OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" >> set speed 115200 >> set ctsrts on >> set server /var/run/ppp/tun%d foobar >> set urgent tcp 22 >> set urgent udp 27010 27011 27012 27013 27014 27015 27016 27017 >> 27018 27019 27020 27960 14577 14578 14579 14580 >> set log Phase Chat IPCP CCP tun command connect >>internode: >> set device PPPoE:em0 >> set ifaddr 0.0.0.0/0 0.0.0.0/0 >> resolv readonly >> disable pap >> enable dns >> set cd 5 >> set dial >> set login >> set redial 5+30-120 0 >> enable lqr >> enable echo >> set lqrperiod 3 >> set reconnect 10 100000 >> set authname username >> set authkey password >> add default HISADDR >>I don't have any linkup/linkdown scripts.. >>Any one have an idea why this would be happening? >>System is a FreeBSD midget.dons.net.au 7.0-STABLE FreeBSD >>7.0-STABLE #1: Sun Jun 1 19:20:18 CST >>2008 darius@midget.dons.net.au:/data/obj/data/src/sys/GENERIC i386 >>Thanks. > >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"