Friday, April 19, 2024
32
rated 0 times [  32] [ 0]  / answers: 1 / hits: 95747  / 3 Years ago, mon, september 13, 2021, 10:32:25

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?


More From » command-line

 Answers
4

  1. Download the OpenVPNConfigFile.ovpn. Note that you can rename the file to anything you like.


  2. Move the ovpn file to /etc/openvpn


  3. cd /etc/openvpn folder and enter sudo nano yourserver.txt



    your_server_user_name
    your_server_passowrd


    Save and Close


  4. 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


  5. Rename OpenVPNConfigFile.ovpn to OpenVPNConfigFile.conf



    sudo mv OpenVPNConfigFile.ovpn OpenVPNConfigFile.conf

  6. sudo nano /etc/default/openvpn



    Uncomment AUTOSTART="all"


  7. 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.



[#33642] Tuesday, September 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
girdleas

Total Points: 1
Total Questions: 112
Total Answers: 114

Location: Lesotho
Member since Wed, Jun 2, 2021
3 Years ago
girdleas questions
;