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.
- 09-09-2012 #1
- Join Date
- Nov 2004
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 byCode:
sudo pon myvpn nodetachCode:
sudo pppd call myvpn
- 09-10-2012 #2
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).