sunshineh
Posts: 11
Joined: Sat Aug 01, 2015 8:03 pm

Raspberry + OpenElec Automatically starting VPN

Mon Dec 19, 2016 7:30 pm

Hi,

on my Raspberry I am having the Linux Media Center OpenElec and OpenVPN installed and created my *.openvpn File.
When I write the following line on my terminal (WinSCP) VPN is correctly running:
openvpn /storage/.config/Austria-tcp.ovpn

Now I want, that VPN is automatically running and wrote the following lines into the "autostart.sh":
(
sleep 60;
openvpn /storage/.config/Austria-tcp.ovpn
) &

But it isn't running automatically :-(
Is there any possibiblity, that I can check the vpn connection automatically, and if it isn't working, that it is running automatically again.

User avatar
DougieLawson
Posts: 39296
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry + OpenElec Automatically starting VPN

Mon Dec 19, 2016 8:20 pm

If the operating system isn't Raspbian you'll need to post your question over on the forum for your OS.

OpenVPN runs from /etc/default/openvpn on Raspbian and it's trivial to get it autostarted.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Other”