Pritunl VPN Server

An open-source enterprise distributed VPN server built using the OpenVPN protocol.

Access

  1. Visit the web interface: https://<SERVER_IP>
  2. Accept SSL warning (self-signed certificate).
  3. Follow the initial setup.

First-Time Setup

0. Open the web interface in your browser.

1. SSH into the server.

2. Generate setup key:

sudo pritunl setup-key

3. Use the following MongoDB URI when prompted: mongodb://localhost:27017/pritunl

4. Get the default admin credentials (username is pritunl):

sudo pritunl default-password

VPN Configuration Flow (Web UI)

  1. Users → Add Organization
  2. Users → Add User
  3. Servers → Add Server
  4. Servers → Attach Organization to Server
  5. Servers → Start Server
  6. Users → Download client profile

Important Files and Directories

  • Pritunl configuration: /etc/pritunl.conf
  • Pritunl application data: /var/lib/pritunl
  • MongoDB database files: /var/lib/mongodb
  • MongoDB configuration: /etc/mongod.conf
  • OpenVPN binaries: /usr/sbin/openvpn
  • WireGuard binaries: /usr/bin/wg

Application Details