Date: Tue, 11 Jan 2011 09:47:32 +0000 From: Melissa Jenkins <melissa-freebsd@littlebluecar.co.uk> To: freebsd-net@freebsd.org Cc: Luiz Otavio O Souza <lists.br@gmail.com> Subject: Re: PPP and Route Delete Message-ID: <A88BD808-D824-431C-91DF-6B65D7AD2E32@littlebluecar.co.uk> In-Reply-To: <01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com> References: <63A5C79A-B4C3-42C3-9B76-1F2EB04DB871@littlebluecar.co.uk> <01EE1F52-3393-4A43-882F-C35677CB0754@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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:<UP,GATEWAY,STATIC> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK> 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:<UP,GATEWAY,STATIC> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK> 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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A88BD808-D824-431C-91DF-6B65D7AD2E32>