How to Use OpenVPN client¶
- Install OpenVPN client.
On Ubuntu
sudo apt-get install openvpn -y
On CentOS: Enable epel and then get openvpn
sudo yum install epel-release -y
sudo yum install openvpn -y
- Copy the configuration file to
/etc/openvpn/
- Run
sudo systemctl enable --now openvpn@config-file
if your config file isconfig-file.conf
. This will start openvpn connection and will automatically run on boot.
If you want to run openvpn manually each time, then run
sudo openvpn --config /path/to/config-file.conf
- That’s all. You should now be able to directly access networks from your local machine.