OpenVPN provides flexible VPN solutions to secure your data communications, whether it's for Internet privacy, remote access for employees, securing IoT, or for networking Cloud data centers. Our VPN Server software solution can be deployed on-premises using standard servers or virtual appliances, or on the cloud.
Prepare your system
Make sure all latests packages and updates have been installed:
$ sudo apt update $ sudo apt upgrade $ sudo apt dist-upgrade
Download and run installation script
$ wget https://git.io/vpn -O openvpn-install.sh $ sudo chmod +x openvpn-install.sh $ sudo ./openvpn-install.sh
The script will ask you some questions for it's basic configuration.
- When your IP address is asked, choose your WAN (public) address
- When protocol is asked, i recommend default UDP
- Port can be anything you want, i normally keep default
- When asked, pick 18.104.22.168 as your DNS server as this is one of the fastest currently online.
After this the installation will go ahead and inform you when it's done. You can verify if OpenVPN is running or not:
$ sudo systemctl status [email protected] # <--- get server status
You can start or stop OpenVPN with the following commands:
$ sudo systemctl stop [email protected] # <--- stop server $ sudo systemctl start [email protected] # <--- start server
At the end of the installation you whould see a message like this:
Your client configuration is available at: /root/bontekoe.ovpn
As i am using Linux (Ubuntu) on my laptop, i can simply copy that ovpn file to my computer using scp.
$ sudo scp [email protected]:/root/bontekoe.ovpn /etc/openvpn/client.conf
This should be enough to connect! Check if everything is working by running:
$ sudo openvpn --client --config /etc/openvpn/client.conf
Now, by opening another terminal you should be able to ping 10.8.0.1 (the VPN host).
If you are running windows, there is a client here.