From owner-freebsd-net@FreeBSD.ORG Tue Jan 11 11:34:28 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 A117A106564A for ; Tue, 11 Jan 2011 11:34:28 +0000 (UTC) (envelope-from melissa-freebsd@littlebluecar.co.uk) Received: from filter.blacknosugar.com (filter.blacknosugar.com [212.13.204.214]) by mx1.freebsd.org (Postfix) with ESMTP id 595D38FC0A for ; Tue, 11 Jan 2011 11:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=littlebluecar.co.uk; s=dkim; h=Subject:To:References:Message-Id:Content-Transfer-Encoding:Date:In-Reply-To:From:Mime-Version:Content-Type; bh=KCMOBE39rj1MtA6/F/nZ6+W+vTj7iOQpvBdQTFiw1uo=; b=KNTRtAZAluLSSFTd1/LpENBqqkg1QMPT85QuQoEdqNYMfysV9ImyTh+XctMnL4Mx4i+oyuOHzPUjKweMhMUYR/P2UX1kWhxZTYqFnp2/Sn9e0EMrgGFpyeNPP6Dy8bdc; Received: from bowser.blacknosugar.com ([78.86.203.16] helo=[192.168.1.59]) by filter.blacknosugar.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PccUa-0003oE-QR for freebsd-net@freebsd.org; Tue, 11 Jan 2011 11:34:27 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) From: Melissa Jenkins In-Reply-To: <01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com> Date: Tue, 11 Jan 2011 11:34:19 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <63A5C79A-B4C3-42C3-9B76-1F2EB04DB871@littlebluecar.co.uk> <01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.1082) X-SA-Exim-Connect-IP: 78.86.203.16 X-SA-Exim-Mail-From: melissa-freebsd@littlebluecar.co.uk X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on filter X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on filter.blacknosugar.com) 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 11:34:28 -0000 > 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) >=20 > Basic PPTP connection works properly. =20 >=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)=20 tun0: flags=3D8051 metric 0 mtu 1398 options=3D80000 inet 10.0.5.1 --> 10.0.0.31 netmask 0xffffffff=20 Opened by PID 12616 tun1: flags=3D8051 metric 0 mtu 1398 options=3D80000 inet 10.0.5.1 --> 10.0.0.32 netmask 0xffffffff=20 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