
Pritunl is an open-source VPN server and management platform that supports both OpenVPN and WireGuard protocols. It provides an intuitive web interface for creating and managing VPN users, organizations, and servers with enterprise-grade security features including two-factor authentication, audit logging, and centralized user management. The Vultr Marketplace provides a pre-configured Pritunl instance on Ubuntu, enabling quick deployment and setup on a Vultr server.
This guide explains deploying and using Vultr's Pritunl Marketplace Application. You will deploy an instance, configure DNS and SSL, set up organizations and users, connect VPN clients, and implement best practices for production deployments.
Log in to your Vultr Console and click the Deploy Server button.
Select your preferred server type.
Choose a server location.
Select a server plan with at least 1GB RAM and 1 CPU core for small teams, or 2GB RAM and 2 CPU cores for larger deployments.
Click the Configure button to proceed.
Under Marketplace Apps, search for Pritunl and select it as the Marketplace Application.
Select the Limited Login option from the Additional Features section to create a limited user with sudo access.
Review your configurations and click the Deploy Now button to start deployment.
It may take up to 10 minutes for your server to finish installing Pritunl.
After the instance shows the status of Running, navigate to the Server Overview page and copy the SSH connection details.
After deployment, configure DNS, verify the installation, and secure your Pritunl instance with SSL/TLS before allowing VPN connections.
Create a DNS A record pointing to your server's IP address, such as vpn.example.com.
Connect to your Vultr server instance over SSH using the connection details from the Server Overview page.
Check the Pritunl service status.
The service should show as active (running).
Check the MongoDB service status.
MongoDB is required for Pritunl's database and should also show as active (running).
Retrieve the default admin password.
Note the username and password for initial login.
Secure your server by configuring the firewall to allow only necessary traffic.
Allow SSH connections.
Allow HTTP and HTTPS traffic for the web interface and Let's Encrypt.
Allow the default OpenVPN port.
Enable the firewall.
Verify firewall status.
Protect your Pritunl web interface with HTTPS using Let's Encrypt certificates.
Open your web browser and navigate to https://YOUR_SERVER_IP.
You'll see a browser warning because of the self-signed certificate. Bypass it to continue.
Log in with the default credentials:
pritunlsudo pritunl default-passwordOn the Initial Setup screen:
vpn.example.com)Pritunl will request and install a valid SSL certificate via Let's Encrypt.
Log out and access the web interface using your domain: https://vpn.example.com.
Log in again with your updated password and verify the SSL certificate is valid in your browser.
[!TIP] If you prefer to use a commercial SSL certificate, upload your certificate files to
/etc/ssl/certs/pritunl.crtand/etc/ssl/private/pritunl.key, set appropriate permissions withsudo chmod 600 /etc/ssl/private/pritunl.key, and restart Pritunl withsudo systemctl restart pritunl.
Set up your VPN infrastructure by creating organizations, users, and VPN servers through the Pritunl web interface.
Log in to the Pritunl web interface at https://vpn.example.com.
Click Users in the top navigation bar.
Click Add Organization.
Enter a name for your organization (e.g., "Engineering Team").
Click Add to create the organization.
Click Add User.
Enter a username for the VPN user.
Enter a numeric PIN (at least six digits) for two-factor authentication.
Select the organization the user belongs to.
Click Add to create the user.
Repeat for additional users as needed.
Click Servers in the top navigation.
Click Add Server.
Configure server settings:
Click Add to create the server.
Click Attach Organization to link users to the server.
Select your organization and click Attach.
Click the green Start Server button to launch the VPN server.
Verify the server status shows Online.
Download client profiles and connect to your VPN server using OpenVPN clients.
In the Pritunl web interface, click Users in the top navigation.
Click the Download icon next to the user profile.
Download the OpenVPN configuration archive (.tar file).
Extract the archive to access the .ovpn file.
Download and install the official OpenVPN Connect client for your operating system.
Launch the OpenVPN client.
Import the .ovpn file from the extracted archive.
When prompted, enter your username and PIN.
Click Connect to establish the VPN connection.
Verify the connection by visiting whatismyip.com and confirming your IP address matches the Pritunl server.
Pritunl also supports WireGuard for improved performance.
In the Pritunl web interface, navigate to Servers.
Edit your server and enable WireGuard support.
Download the WireGuard profile from the user's profile page.
Install the WireGuard client and import the configuration.
Pritunl provides enterprise-grade VPN management features through its web interface.
Navigate to Users to view all VPN users.
Click a user to view connection status, session history, and statistics.
Disable or delete users as needed.
Reset user PINs if they forget their credentials.
Navigate to Servers to monitor VPN server status.
View real-time connection statistics including:
View server logs for troubleshooting.
Create multiple organizations for different teams or departments.
Assign users to specific organizations.
Attach organizations to specific VPN servers for access control.
Implement these recommendations to ensure your Pritunl VPN server runs securely and efficiently.
Enforce strong PINs for all users (minimum 6 digits).
Enable two-factor authentication for administrative access.
Navigate to Settings and configure Google Authenticator or similar.
Regularly rotate user credentials and PINs.
Review audit logs periodically.
Navigate to Logs to view connection attempts and administrative actions.
Keep Pritunl updated.
Use unique ports for VPN servers to avoid common port scanning.
Use UDP protocol for better performance (default).
Enable WireGuard for improved throughput on supported clients.
Adjust MTU settings if experiencing connection issues.
Edit server settings and adjust the MTU value (default 1500).
Monitor server resources.
Back up the Pritunl configuration and MongoDB database.
Schedule automated backups with cron.
Add:
Store backups offsite using Vultr Object Storage or similar.
This section covers common issues and diagnostic commands to help resolve problems with your Pritunl VPN server.
Verify Pritunl service is running.
View Pritunl logs.
View MongoDB logs.
Verify Pritunl service is running.
Check firewall allows HTTPS traffic.
Verify the server is listening on port 443.
Restart Pritunl if needed.
Verify the VPN server is running in the web interface (should show Online).
Check firewall allows the VPN port.
Verify client credentials (username and PIN) are correct.
Check server logs for connection errors.
Ensure the client's .ovpn profile is up to date.
Verify DNS is properly configured.
Check Let's Encrypt certificate status in the web interface under Settings.
Ensure ports 80 and 443 are open for certificate renewal.
Manually renew the certificate by re-entering the domain in Settings and saving.
Verify MongoDB is running.
Check MongoDB logs for errors.
Restart MongoDB and Pritunl.
Pritunl provides a versatile VPN solution for various scenarios:
In this guide, you deployed Vultr's Pritunl Marketplace Application and configured it for production use. You secured the server with firewall rules and SSL/TLS certificates, created organizations and users, configured VPN servers, and connected clients using OpenVPN. You also implemented best practices including security hardening, performance optimization, and backup procedures. With Pritunl's enterprise-grade features and Vultr's infrastructure, you can manage secure VPN access for teams and organizations with centralized user management, multi-protocol support, and comprehensive audit logging.
0 Comments
Be the first to comment and share your perspective with the community.