Networking Forums

Networking Forums > Computer Networking > Linux Networking > persistent pptp vpn with pppd

Reply
Thread Tools Display Modes

persistent pptp vpn with pppd

 
 
motanulincaltat@gmail.com
Guest
Posts: n/a

 
      06-15-2006, 10:27 PM
Hi. I'm having problems with keeping a persistent pptp VPN connection
using pppd.

Here's the relevant contents of my /etc/ppp/peers/myconnection file:

pty "pptp [pptpserver] --nolaunchpppd "
require-mppe
refuse-eap
persist
noipv6
noauth
mtu 1350

I also have a couple of scripts to set up/remove some routing in
/etc/ppp/ip-up.d/ and /etc/ppp/ip-down.d/. Specifically, I'm adding a
route to pptpserver through eth0, and a route to my work domain through
the pppd interface.


The VPN connection is established and it works fine, as long as my
internet connection is ok (eth0 has a static ip going into my router
which maintains a DSL connection as its WAN). My problem is that
whenever my internet connection has a hiccup, the VPN connection
doesn't recover. So, after a hiccup, I can still ping pptpserver itself
(the packets will go directly through the eth0 interface), but I cannot
ping anything through the pppd interface. If I manually poff then pon
myconnection, everything works again.

Is this a problem/bug regarding the 'persistent' option I'm giving to
pppd?

What should I do if I want the VPN connection to recover by itself? Is
there some option other than 'persistent' that I should give pppd?
Should I manually write a daemon script which pings through the pppd
interface every 2 mins and redials it if it doesn't work?


Thanks for you input.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSuse 11.1 Kinternet error: "pppd[0] died: pppd options error (exit code 2) Trevor Linux Networking 4 04-22-2009 06:31 PM
persistent connections through IP address changes Robert Wireless Internet 11 05-16-2006 08:00 PM
Persistent Bi-Di VPN problems joe mamma Windows Networking 2 10-31-2005 09:33 AM
persistent cache bill Windows Networking 0 05-16-2005 10:50 PM
PPPD server routing problem? Mandrake/mgetty/pppd/D-link router martin02 Linux Networking 17 10-06-2003 03:06 PM



1 2 3 4 5 6 7 8 9 10 11