Connect VPN from Clients

Linux Clients

On Linux clients, First, you need to install OpenVPN packages by executing.

sudo apt install openvpn

After that use the below mentioned command to connect to OpenVPN server using the given client configuration file.

openvpn --config client1.ovpn

You may need to add sudo along with the command if it shows permission denied.

After successful connection OpenVPN will assign an IP address to your system. IP address which are assigned, can be checked using following command.

ifconfig tun0

[output]
vpn

To Stop OpenVPN:

  • Kill the vpn connection by searching for the active connection
  • ps aux | grep openvpn
  • Note the PID of the active connection and kill the connection with
  • sudo kill -2 *PID*
Subscribe Now