Video tutorial coming soon.
Deploy Pritunl, an enterprise distributed OpenVPN server with a web dashboard for managing organizations, servers, users, and client configurations at scale.
Grab the automated bash script from GitHub to follow along.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/vpn/pritunl/pritunl-ubuntu.sh
chmod +x pritunl-ubuntu.sh
sudo bash pritunl-ubuntu.sh
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
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
Go to Users → Add Organization, then add users to the organization. Each user can have multiple devices and download their .ovpn config profile.
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.
| Port | Protocol | Purpose |
|---|---|---|
| 80 | TCP | HTTP (redirects to HTTPS) |
| 443 | TCP | Web UI (HTTPS) |
| 1194 | UDP | OpenVPN Tunnel |
/root/docker/pritunl/docker-compose.yml