PPTP VPN



Fedora user's group:

I installed the PPTP VPN on a client to connect via pptpvpn to a server
which is running it. I used pptpconfig to config the network. When I
connect, the VPN runs fine. I looked in pptpconfig and saw it does a

/usr/sbin/pppd call myserver logfd 1 updetach persist

(I used "myserver" in this mail instead of the actual name). So I made a file
/etc/init.d/pptpvpn where under start) I do the above (along with some checking,
etc). This also works nicely, when I but (after chkconfig on) the VPN comes
up and I can connect.

Problem is, if somehow the pptp process dies, if it is in /etc/init.d it won't start up
automatically again (which I need), so instead I transfered to /etc/inittab:

vp:35:respawn:/usr/sbin/pppd call myserver logfd 1 updetach persist

A "kill -1 1" or reboot will start this, but a ps just shows two processes with that
but I can't ping. A few minutes later it shows two processes again but with new
PIDs. Then a few minutes later two new processes with the same parameters
(there are only 2 at a time). I can't ping anything on the VPN either (and I do
add the routes in ip-up.local so from the /etc/rc5.d script it starts up the route).

Anyway how can I either modify my script in /etc/init.d (linked to /etc/rc*.d) to respawn
in the (unlikely but possible) case the process dies, or modify /etc/inittab to work
correctly?

Thanks







--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: VPN options
    ... >the future, forbid VPN. ... The info on comcast was to clarify ... >specific context of Fedora. ... Chris Johnson, RHCE #807000448202021 ...
    (Fedora)
  • Re: Connecting to Microsoft VPN with Linux?
    ... > * can Linux VPN support Microsoft VPN? ... Don't use MS PPTP if you don't need to. ... than on Fedora, because Fedora kernel is missing the module bsd_comp.o. ... OpenVPN is available for Win32, ...
    (Fedora)
  • Re: Information and/or Suggestiong needed
    ... some type of vpn is your answer. ... client on each fedora router. ... if you'd rather have hardware do the vpn, cisco has reliable soho vpn ...
    (Fedora)
  • IRC / VM question
    ... laptop running Fedora 10. ... connect the VM to a VPN connection and then connect to an IRC ... However I don't want to connect the host OS to the VPN since I have ...
    (Fedora)
  • Re: Fedora 10
    ... I have yet to be able to get a VPN client working in Fedora 10 - for now I'm ... running CentOS inside of vmware workstation since the cisco vpn client for ...
    (Fedora)