Find the answer to your Linux question:
Results 1 to 2 of 2
I need a PPTP VPN connection starting on boot (before a user logs in). I have set it up manually and now can start it either by Code: sudo pon ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    12

    How to start a VPN connection on boot?


    I need a PPTP VPN connection starting on boot (before a user logs in). I have set it up manually and now can start it either by
    Code:
    sudo pon myvpn nodetach
    or
    Code:
    sudo pppd call myvpn
    but I cannot figure out how to start it on boot. I am using Ubuntu (12.04 but need to set it up on 10.04 if it makes any difference).

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Take a look at initd scripts. If initd does not work for you, an alternative and far more complicated approach would be to configure a cronjob that regularily ensures that the vpn connection is up and in case it is not to bring it up. The trouble there is that the cron script can become a witness of network downtimes and thus would need to handle those things properly. Last but not least there exist vpn daemons around that do both things (see openvpn "AUTOSTART" directive).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •