OpenVPN is for Virtual Private Network in Linux where the user can access to the private browser or private window. It is for providing a flexible solutions for securing your data communication and also for remote computer access.
People usually wants to remotely access to the network where entry is illegal in their area or server. So, we have to use VPN to get access.
How to manually setup VPN using Terminal ?
- Open a terminal with ctrl + alt + t.
- Install OpenVPN :
1sudo apt-get install openvpn
- Open VPN configuration directory.
- Download OpenVPN configuration files with shell
1sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
- If you get an error, it’s because of a certificate:
1sudo apt-get install ca-certificates
- You have to unzip the package to run it, so you better install an unzip package:
1sudo apt-get install unzip
- Now, extract ovpn.zip with terminal:
1sudo unzip ovpn.zip
- And remove file that will no longer be used :
sudo rm zip
- And you can use either of them for connection purpose:
1sudo cd ovpn_udp / cd ovpn_udp
- List all the available servers, it will print whole config list
- Now, choose a server you would like to use.
- Start OpenVPN with a chosen config.
1sudo openvpn [file name]
- After that, it will ask you for credentials which is NordVPN account credentials.
- So, now you have successfully connected to VPN. And to disbanded it just enter control + c.
Therefore, this is how you connec OpenVPN from terminal.