December 22, 2024

Steps Involving In an OpenVPN Setup

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:

  1.     Search and Find and your public IP address
  2.     Download openvpn-install.sh script
  3.     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

 

OpenVPN Setup - Installation script
Downloading install.sh script

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)

 

OpenVPN Setup - Running install.sh script
Running install.sh script

 

This will further generate keys, DH parameters and more as follows:

OpenVPN Setup - Running OpenVPN installation script
Running OpenVPN installation script

And we are done here. The OpenVPN setup is now accomplished and is ready to use.

Sponsored

Share your Opinion

This site uses Akismet to reduce spam. Learn how your comment data is processed.