On 11 Jan 2011, at 09:13, Luiz Otavio O Souza wrote:

> On Jan 10, 2011, at 2:25 PM, Melissa Jenkins wrote:
>> 
>> 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.  
>> 
>> 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.
>> 
>> I believe this is because of the third RTM_DELETE message in the route 
>> monitor output below (From FreeBSD 8.1):
> 
> 
> 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 :(

> 
> How are you setting the IP address for vpn connections (radius?) ?
> 

I've got them configured in the third column in the secret file:

eg:
... 
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'):
> 
> default:
> set log Phase Chat LCP IPCP CCP tun command Warning Error
> ident user-ppp VERSION (built COMPILATIONDATE)
> 
> pptp:
> set ifaddr 10.10.0.1 10.10.3.100-10.10.3.104 255.255.255.255
> [snip]
> Some details:
> 
> 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_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to