I'm using RaspBMC and have set up a VPN using openVPN and PrivateInternetAccess. I've been following the third comment on this post which I have used previously and has worked. A few weeks ago, it stopped working on boot. If I run it manually, so type
sudo openvpn /etc/openvpn/London.conf
into putty, it works fine, but only until the next time it reboots. The instructions in this post edit the startup file for openVPN, but I've also tried to use a cronjob to launch it on boot with no luck. I'll post the openVPN startup file at the end. Please let me know anything else I should post that may help. Thanks in advance.
Openvpn startup script:
# This is the configuration file for /etc/init.d/openvpn # # Start only these VPNs automatically via init script. # Allowed values are "all", "none" or space separated list of # names of the VPNs. If empty, "all" is assumed. # The VPN name refers to the VPN configutation file name. # i.e. "home" would be /etc/openvpn/home.conf # #AUTOSTART="all" #AUTOSTART="none" #AUTOSTART="home office" AUTOSTART="London" # # Refresh interval (in seconds) of default status files # located in /var/run/openvpn.$NAME.status # Defaults to 10, 0 disables status file generation # #STATUSREFRESH=10 #STATUSREFRESH=0 # Optional arguments to openvpn's command line OPTARGS="" # # If you need openvpn running after sendsigs, i.e. # to let umountnfs work over the vpn, set OMIT_SENDSIGS # to 1 and include umountnfs as Required-Stop: in openvpn's # init.d script (remember to run insserv after that) # OMIT_SENDSIGS=0