From owner-freebsd-net@FreeBSD.ORG Tue Jan 11 09:47:49 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 DEEF01065705 for ; Tue, 11 Jan 2011 09:47:48 +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 969908FC1C for ; Tue, 11 Jan 2011 09:47:48 +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:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version; bh=shXt8FTx06YCLU2jJ7YlZ0K/5MKgpRx/ZVgQWPyarec=; b=S3u46RM+cVu6OZnMN5KmUihg4biXV5+HXCjfUE1xtb/7iGkdPsq11TVY2kMSzeOct+AoQCELb2ZE0hEfuNSNqYqQYsQzHq8OV1JamFxkMgJu23aDrNONFaQ+dot8xcTr; 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 1PcapM-0001sI-9j; Tue, 11 Jan 2011 09:47:46 +0000 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Melissa Jenkins In-Reply-To: <01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com> Date: Tue, 11 Jan 2011 09:47:32 +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) Cc: Luiz Otavio O Souza 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 09:47:49 -0000 On 11 Jan 2011, at 09:13, Luiz Otavio O Souza wrote: > On Jan 10, 2011, at 2:25 PM, Melissa Jenkins wrote: >>=20 >> 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. >>=20 >> I believe this is because of the third RTM_DELETE message in the = route monitor output below (=46rom FreeBSD 8.1): >=20 >=20 > I believe it's the second call... but probably doesn't matter... Yes - I must have switched programming languages and ended up starting = at 1 :( >=20 > How are you setting the IP address for vpn connections (radius?) ? >=20 I've got them configured in the third column in the secret file: eg: ...=20 melissa dummypw 10.0.0.31 john dummypw 10.0.0.32 > I'm also using poptop with ppp without any problem, here is my = ppp.conf (look at differences on 'set ifaddr'): >=20 > default: > set log Phase Chat LCP IPCP CCP tun command Warning Error > ident user-ppp VERSION (built COMPILATIONDATE) >=20 > pptp: > set ifaddr 10.10.0.1 10.10.3.100-10.10.3.104 255.255.255.255 > [snip] > Some details: >=20 > 10.10.0.1 is the internal IP on the pptp server; > 10.10.3.100-10.10.3.104 is my range of IPs used for vpn purposes (i'm = using 10.10.0.0/22 as internal network). I've just tried it configured as set ifaddr 10.0.5.1 HISADDR 255.255.255.255 It still sends the route delete: got message of size 192 on Mon Jan 10 23:35:03 2011 RTM_DELETE: Delete Route: len 192, pid: 0, seq 0, errno 0, = flags: locks: inits: sockaddrs: default 10.0.5.1 default with set ifaddr 10.0.5.1 10.0.0.1-10.0.0.255 255.255.255.255 got message of size 192 on Mon Jan 10 23:37:02 2011 RTM_DELETE: Delete Route: len 192, pid: 0, seq 0, errno 0, = flags: locks: inits: sockaddrs: default 10.0.5.1 default :( Going to spend some time looking at the PPP code and see if I can figure = out what triggers it. Mel=