I'm using Ubuntu 12.04 64bit. I have an *.ovpn
file that works if I type:
sudo openvpn client.ovpn
Now I would like to start up openvpn
when I boot the computer.
How can I do this?
I'm using Ubuntu 12.04 64bit. I have an *.ovpn
file that works if I type:
sudo openvpn client.ovpn
Now I would like to start up openvpn
when I boot the computer.
How can I do this?
Download the OpenVPNConfigFile.ovpn
. Note that you can rename the file to anything you like.
Move the ovpn file to /etc/openvpn
cd /etc/openvpn
folder and enter sudo nano yourserver.txt
your_server_user_name
your_server_passowrd
Save and Close
sudo nano OpenVPNConfigFile.ovpn
Find auth-user-pass
and add yourserver.txt
next to it so that it becomes
auth-user-pass yourserver.txt
This will allow you to skip entering your credentials everytime you start openvpn connection
Rename OpenVPNConfigFile.ovpn
to OpenVPNConfigFile.conf
sudo mv OpenVPNConfigFile.ovpn OpenVPNConfigFile.conf
sudo nano /etc/default/openvpn
Uncomment AUTOSTART="all"
sudo service openvpn start
You should see a message saying that you are connected. The connection will be established every time you start your computer.