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.
1 |
root@server:~# ifconfig |
Output:
1 2 3 4 5 6 7 8 |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet <strong><span style="color: #ff0000;">1.2.3.4</span></strong> netmask 255.255.255.0 broadcast 1.2.3.4 inet6 fff::fff:ff:f prefixlen 64 scopeid 0x20 ether ff:00:00:00:00:00 txqueuelen 1000 (Ethernet) RX packets 1333033 bytes 1624453300 (1.6 GB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1368419 bytes 939479780 (939.4 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
2.0 Download openvpn-install.sh script
1 |
root@server:~# wget https://git.io/vpn -O openvpn-install.sh |
2.1 Runs the script!
1 |
root@server:~# bash openvpn-install.sh |
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…