From owner-freebsd-net@FreeBSD.ORG Tue Jan 11 15:54:00 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C171065697 for ; Tue, 11 Jan 2011 15:54:00 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFBC8FC13 for ; Tue, 11 Jan 2011 15:53:59 +0000 (UTC) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id p0BFdkts001403; Tue, 11 Jan 2011 07:39:47 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Jan 2011 07:36:26 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PPP and Route Delete Thread-Index: Acuxg5CmIsBm4OTGSiik8ND+TXtJqgAIb6/V References: <63A5C79A-B4C3-42C3-9B76-1F2EB04DB871@littlebluecar.co.uk><01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com> From: "Li, Qing" To: "Melissa Jenkins" , Cc: Subject: RE: PPP and Route Delete X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 15:54:00 -0000 The self-pointing route 10.0.5.1 should have multiple references set on it, and that route won't be deleted from the routing table until the=20 last reference is removed. =20 You can verify that by checking the "netstat" output, the "Ref" column after tun1 has been created. =20 The above has been verified with both mpd and other tests. =20 -- Qing ________________________________ From: owner-freebsd-net@freebsd.org on behalf of Melissa Jenkins Sent: Tue 1/11/2011 3:34 AM To: freebsd-net@freebsd.org Subject: Re: PPP and Route Delete > I've been working on migrating a PPTP server from FreeBSD 7.1 to = FreeBSD 8.1. The server is configured using PopTop (from ports) and PPP = (/usr/sbin) rather than MPD. (Before anybody tells me to use MPD we = can't because it doesn't inject packets into the kernel in the same way = and it's not possible to filter on them correctly) > > Basic PPTP connection works properly.=20 > > The fun happens when I have two simultaneous users. The first one to = DISCONNECT deletes the routes for both of them and all PPTP traffic = ceases. Just been working my way through the PPP code - which doesn't actually = appear to have changed. However, the netinet/in.c does have some comments in the SVN history = about deleting the loopback address, this appears to have been merged in = as part of the 8 release cycle (r197231 perhaps) (though I'm not an = expert at SVN etc) What should happen when there are multiple interfaces with the same = address. When I have two tunnels configured they show up as (eg) tun0: flags=3D8051 metric 0 mtu 1398 options=3D80000 inet 10.0.5.1 --> 10.0.0.31 netmask 0xffffffff Opened by PID 12616 tun1: flags=3D8051 metric 0 mtu 1398 options=3D80000 inet 10.0.5.1 --> 10.0.0.32 netmask 0xffffffff Opened by PID 12630 If the loop back address is 10.0.5.1 and closing one of them deletes the = loopback what should happen? Should it delete all routes that refer to = 10.0.5.1? Mel _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"