OpenVPN in 5 minutes! (Linux)

OpenVPN in 5 minutes! (Linux)

PROBLEM: I have Ubuntu machine and I would like to use it as a VPN server.
SOLUTION: Easy 5 minutes setup!

[?] What is VPN?
https://thebestvpn.com/what-is-vpn-beginners-guide/

1.0 Find your IP (it has to be public), in my case it is (example) 1.2.3.4.

Output:

2.0 Download openvpn-install.sh script

2.1 Runs the script!

Use IP address you discovered in step 1, use port 1194 (standart OpenVPN port). Pick your favourite DNS service and put name of the first user (client). And you are done!
Script will add some firewall rules and create all config.

3.0 Connect to VPN!

Configuration file (.ovpn) should be found in your home folder, just copy it to your endpoint device (PC) using e.g. SFTP (How to do it), Import and Connect!

4.0 Add more users?

Just run the shell script again!

5.0 Find more here!

https://www.cyberciti.biz/faq/howto-setup-openvpn-server-on-ubuntu-linux-14-04-or-16-04-lts/

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments