Comments on How to setup a VPN Server using Pritunl on Ubuntu 18.04 LTS
Pritunl is a VPN Server Software based on the popular OpenVPN platform. In this tutorial, you will learn how to set up and use Pritunl on your Ubuntu 18.04 LTS based server.
6 Comment(s)
Comments
Hi,
I install it on Debian 10 and works great
Thanks
Hello, thanks for such a great tutorial. I've been having an issue, when I try adding the keyservers it says connection refused. I even tried disabling the firewall. Dose anyone know how to resolve this issue?
excellent tutorial - keep up the good work!
Im having trouble starting my server i cant get past this error
autumn-waves-7295][2020-03-13 18:29:00,772][ERROR] Error in management socket thread
Traceback (most recent call last):
File "/usr/lib/pritunl/local/lib/python2.7/site-packages/pritunl/server/instance_com.py", line 284, in _socket_thread
self.connect()
File "/usr/lib/pritunl/local/lib/python2.7/site-packages/pritunl/server/instance_com.py", line 370, in connect
self.sock.connect(self.socket_path)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
instance_id = "5e6bd0ec538ba75656aa63c8"
socket_path = "/var/run/pritunl_5e6bd0ec538ba75656aa63c8.sock"
server_id = "5e6bca7ede4150b2d1ed9dd2"
At last, after 10000000000 days of searching after something like this, i found this. With a little minor modifications, before starting the server, do a sudo apt-get update and upgrade, then
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.0.list
echo "deb http://repo.pritunl.com/stable/apt trusty main" > /etc/apt/sources.list.d/pritunl.list
then add repos
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7F0CEB10
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv CF8E292A
update the pachage with sudo apt-get update, and
sudo iptables -A INPUT -p udp -m udp --sport 9700 --dport 1025:65355 -j ACCEPT
sudo iptables -A INPUT -p tcp -m tcp --sport 9700 --dport 1025:65355 -j ACCEPT
then you can install python proprerties pritunl monodb-org
sudo apt-get install python-software-properties pritunl mongodb-org
then do a
sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
deb http://repo.pritunl.com/stable/apt bionic main
EOF
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
sudo apt update
and after all this
sudo apt-get --assume-yes install pritunl mongodb-server
and sudo sytemctl start and enable.
All this is if you get the error "E:unable to locate the package pritunl" after "assume-yes installl...". Because this was the only workaround for this error, and i did not find anything related on thie errror.
Great article. 10/10
Hi, I can connect to the vpn server through OpenVPN client, but I can't browse the internet, any idea
I can resolve the names while I am connected but no traffic can go outside