🎬

Video tutorial coming soon.

🛡️ Setup Pritunl — Enterprise VPN Server

Deploy Pritunl, an enterprise distributed OpenVPN server with a web dashboard for managing organizations, servers, users, and client configurations at scale.

⚠️ This script is provided for demo and testing purposes only.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along.

Automated install script — Pritunl VPN server with web UI.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/vpn/pritunl/pritunl-ubuntu.sh
chmod +x pritunl-ubuntu.sh
sudo bash pritunl-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

The script installs Docker, pulls Pritunl and MongoDB, and starts the full stack. A setup key is generated for the initial web configuration.

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/vpn/pritunl/pritunl-ubuntu.sh
chmod +x pritunl-ubuntu.sh
sudo bash pritunl-ubuntu.sh

2 Initial Setup via Web UI

Open your browser and navigate to Pritunl. Enter the setup key printed by the script, then set your admin username and password:

https://YOUR-SERVER-IP

3 Create Organization and Users

Go to Users → Add Organization, then add users to the organization. Each user can have multiple devices and download their .ovpn config profile.

4 Attach a Server and Go Online

Go to Servers → Add Server, attach the organization, and click Start Server. Users can now connect using the OpenVPN client or the Pritunl client app.

Ports Used

PortProtocolPurpose
80TCPHTTP (redirects to HTTPS)
443TCPWeb UI (HTTPS)
1194UDPOpenVPN Tunnel

Files Location

/root/docker/pritunl/docker-compose.yml