Changes

Line 45: Line 45:  
[[File:Ovpn config file linux.png]]
 
[[File:Ovpn config file linux.png]]
 
</li>
 
</li>
 +
</ul>
 +
----
 +
* Copy the configuration file to '''/etc/openvpn/''' and rename if to '''client.conf'''. To do so, simply open up a Terminal in the location where your configuration file is present and execute this command:
 +
 +
cp example.ovpn /etc/openvpn/client.conf
 +
----
 +
* Enable the autostart of the OpenVPN service:
 +
 +
sudo systemctl enable [email protected]
 +
----
 +
* Start the client:
 +
 +
sudo service openvpn@client start
 +
----
 +
* At this point all you need to do is wait a few seconds for the connection to complete. To check the status of the connection, use this command:
 +
 +
sudo service openvpn@client status
 +
 +
[[File:How to check openvpn status on linux.png]]
 +
----
 +
* An OpenVPN interface should also appear. To check it, execute this command:
 +
 +
ifconfig
 +
 +
The entry for the interface should look something like this:
 +
 +
tun_c_ovpn  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
 +
              inet addr:10.0.0.6  P-t-P:10.0.0.5  Mask:255.255.255.255
 +
              inet6 addr: fe80::df8c:ec55:e5b8:ab27/64 Scope:Link
 +
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
 +
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 +
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
 +
              collisions:0 txqueuelen:100
 +
              RX bytes:0 (0.0 B)  TX bytes:288 (288.0 B)
 +
----
 +
* Additional testing for the connection may be required depending on the server's configuration and the overall intent of your OpenVPN connection. For instance, if you were supposed get access to server's private network or other clients' private networks, you can open a Terminal and try pinging private IP addresses of the devices in the networks in question. Or if the server was intended to be used as a proxy, your computer's Public IP address should be the same as the server's. To check your public IP address, visit '''[http://www.whatsmyip.org/ this website]'''.