Access
- 访问 Web 界面:
https://<SERVER_IP> - 接受 SSL 警告(自签名证书)。
- 按照初始设置步骤操作。
初次配置
0. 在浏览器中打开 Web 界面。
1. SSH 到服务器。
2. 生成设置密钥:
sudo pritunl setup-key
3. 在提示时输入以下 MongoDB URI: mongodb://localhost:27017/pritunl
4. 获取默认管理员凭据(用户名为 pritunl):
sudo pritunl default-password
VPN 配置流程(Web UI)
- 用户 → 添加组织
- 用户 → 添加用户
- 服务器 → 添加服务器
- 服务器 → 将组织绑定到服务器
- 服务器 → 启动服务器
- 用户 → 下载客户端配置文件
重要文件与目录
- Pritunl configuration:
/etc/pritunl.conf - Pritunl 应用数据:
/var/lib/pritunl - MongoDB 数据库文件:
/var/lib/mongodb - MongoDB configuration:
/etc/mongod.conf - OpenVPN binaries:
/usr/sbin/openvpn - WireGuard binaries:
/usr/bin/wg