OpenVPN – How to Auto Start OpenVPN with One .ovpn File

openvpn

Hi i bought vpn access form a vpn provider, i got a bunch of .ovpn files.

How can i get openvpn to startup one of these .opvn files under start/boot up?

I would like to, not have to run openvpn --config VPNservername.ovpn every time i have to do a reboot.
I'm running ubuntu 12.04 server.

I have installed openvpn

Best Answer

When you have installed openvpn from the repo, everything is already prepared for you.

Place the whatever.conf file in /etc/openvpn/ and a daemon will be started for it at boot.

Edit

Please note that *.opvn will not work, *.conf will.

Related Question