Sponsored
As the name suggests, OpenVPN is an open source Virtual Private Network (VPN) solution that creates secure point-to-point or site-to-site connections in routed or bridged configurations. A VPN is necessary to protect our browsing activity from some random guys using the same public/open WiFi connection we use. With the help of OpenVPN setup we can connect securely to an insecure public network such as WiFi network at the airport or hotel. We can also easily bypass geo-blocked sites and increase your privacy or safety online.
This piece of article provides step-by-step instructions for OpenVPN setup:
- Search and Find and your public IP address
- Download openvpn-install.sh script
- Run the script to install OpenVPN server
Contents
Search and Find your public IP address
Use any one of the following command to find out your IPv4 public address. If your internface name is eth0 or eth1, enter the following in terminal:
Sponsored
ip addr show eth0
or
ip addr show eth1
or
Use the host command or dig command as follows:
host myip.opendns.com resolver1.opendns.com
or
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
Download openvpn-install.sh script
Type the following command in terminal:
wget https://git.io/vpn -O openvpn-install.sh
Run the Script to install OpenVPN server
To run the installation script, use the following command:
sudo bash openvpn-install.sh
(You will need to enter your system login password for the current user here)
This will further generate keys, DH parameters and more as follows:
And we are done here. The OpenVPN setup is now accomplished and is ready to use.
Sponsored