Skip to contentSkip to conversation

disconnect

DISCUSSION [email protected] 2 participants 2 messages Jul 3, 2008 – Jul 7, 2008 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

A member of this group helped me set up a pppd server that will reconnect when disconnected. It is more elaborate than this but basically

while :
do
pppd call .......
sleep 30 # pause before retry
done

then I killed the pptp process and watched it start up again. The one problem is, the owner of the VPN said it didn't disconnect correctly so I soon used up all the IP addresses in the IP pool.

Is there a way if a pppd or pptp process dies, to send a normal exit or disconnect so this won't happen?

#1 lore raw
Quoted 3 lines · [email protected] writes:

then I killed the pptp process and watched it start up again. The one problem is, the owner of the VPN said it didn't disconnect correctly so I soon used up all the IP addresses in the IP pool.

Killing the pppd process with SIGTERM should cause it to send a normal termination signal to the peer.

Signature · 1 line
James Carlson         42.703N 71.076W         <[email protected]>