Sometimes we need to connect sone new resource (server, workstation and etc.) to our OpenVPN network. We have preconfigured config file as .ovpn file format, but we have no GUI. What we have to do>

First of all we need to install openvpn client on our resource

sudo apt-get install openvpn

Then copy config file from remote server to our resource

scp user@configserverhost:/path/to/conbfig/openvpn_client.ovpn ~/.ssh/openvpn/openvpn_client.ovpn

And finally start openvpn with defined config file in background

openvpn --config ~/.ssh/openvpn/openvpn_client.ovpn &

If all things was done right we can check network parameters


If we will see connection like tun0- and this adapter has IP address, then we can try to connect to our resource usin this new IP in openvpn network.

Next Post Previous Post