Setup a VPN server with Pritunl on Ubuntu

Prerequisites

  1. You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get a free account in your Alibaba Cloud account. If you don’t know about how to set up your ECS instance, you can refer to this quick-start guide. Your ECS instance must have at least 1GB RAM and 1 Core processor.
  2. A non-root user with sudo privileges

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

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Q&A: My First 6 Months at Tidal Migrations

Stack service load balancing with Traefik in Rancher (Docker)

A practical way to make your Rails Views dynamic

A Reference Architecture for Responsive Asynchronous Task Execution

Add ML capabilities to your app with ML Kit

How to use your AWS credits in the AWS account?

Azure nuggets

Past, Present, and Future on Generasi Gigih

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
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

GitLab CI Deploy to Cloudflare Pages

Configure Nagios 4 with Nginx on Ubuntu 20.04

Install Nagios 4 + Nginx + Ubuntu 20.04

Browse multiple PgSQL databases with PgWeb

Intelligent Systems with Internet of Things (IoT) Part 1 & 2 & 3