Setup a VPN server with Pritunl on Ubuntu

Prerequisites

Update the System

sudo apt-get update && sudo apt-get upgrade

Install Pritunl

sudo nano /etc/apt/sources.list.d/mongodb-org-3.0.list
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse
sudo nano /etc/apt/sources.list.d/pritunl.list
deb http://repo.pritunl.com/stable/apt trusty main
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7F0CEB10apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv CF8E292A
sudo iptables -A INPUT -p udp -m udp --sport 443 --dport 1025:65355 -j ACCEPTsudo iptables -A INPUT -p tcp -m tcp --sport 443 --dport 1025:65355 -j ACCEPTsudo iptables -A INPUT -p `your protocol` -m `your protocol` --sport `your port` --dport 1025:65355 -j ACCEPT
sudo apt-get update
sudo apt-get install pritunl mongodb-org
sudo service pritunl start

Configuration

Connecting to the Server

Conclusion

Original Source

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store