2026-01-28 22:37:47 +03:00
# OpenVPN Monitor & Profiler
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
Web suite for OpenVPN servers: real-time traffic monitoring, history and analytics, PKI and client-profile management, one UI.
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
| Component | Dir | Stack | Port |
2026-09-30 12:12:09 +00:00
|---|---|---|---|
2026-10-05 20:30:45 +03:00
| UI | `APP_UI/` | Vue 3 + Vite, served by Nginx | 80 (containers) / 8088 (system services, HTTPS) |
| Monitoring API + data gatherer | `APP_CORE/` | Flask (gunicorn), Python daemon | 5001, internal |
| Profiler API | `APP_PROFILER/` | FastAPI (uvicorn) | 8000, internal |
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
Nginx is the only public entry point. More: [Overview ](DOCS/General/Overview.md ).
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
## Get it running
2026-02-06 09:02:59 +03:00
2026-10-05 20:30:45 +03:00
1. **Pick a method** ([comparison ](DOCS/Deployment/README.md )), clone the repository on the host and run one command as root:
2026-02-06 09:02:59 +03:00
2026-10-05 20:30:45 +03:00
| Method | Command | Guide |
|---|---|---|
| Containers (Docker) | `deploy/docker/install.sh --variant a` (`b` = one container per component) | [Containers ](DOCS/Deployment/Containers/README.md ) |
| System services (Alpine, Debian, Ubuntu) | `deploy/native/install.sh --prefix /opt/OpenVPN-Monitoring-Simple` | [System services ](DOCS/Deployment/System_Services/README.md ) |
2026-02-06 09:02:59 +03:00
2026-10-05 20:30:45 +03:00
Not sure? Docker on the host: containers, variant A. Otherwise: system services.
2. The script prints the URL and the **administrator password once** (no default account exists).
3. Follow [First steps ](DOCS/Deployment/First_Steps.md ): secure the account, initialize the PKI, configure and start the VPN server, create the first client.
2026-02-06 09:02:59 +03:00
2026-10-05 20:30:45 +03:00
Optional: NAT, MSS clamping and TTL for the VPN clients on system-service hosts: `deploy/native/firewall.sh --dry-run` ([Firewall ](DOCS/Deployment/System_Services/Firewall.md )).
2026-01-09 10:30:49 +03:00
2026-09-30 12:12:09 +00:00
## Documentation
2026-01-28 22:37:47 +03:00
2026-10-05 20:30:45 +03:00
| Level | Where |
|---|---|
| General information | [Overview ](DOCS/General/Overview.md ) · [Configuration ](DOCS/General/Configuration.md ) · [Security architecture ](DOCS/General/Security_Architecture.md ) · [Database migrations ](DOCS/General/Database_Migrations.md ) |
| Installation methods | [Choose a method ](DOCS/Deployment/README.md ) · [First steps ](DOCS/Deployment/First_Steps.md ) |
| Details per method | [Containers ](DOCS/Deployment/Containers/README.md ) (operations, reference, troubleshooting) · [System services ](DOCS/Deployment/System_Services/README.md ) (operations, reference, web UI, firewall, nginx, troubleshooting) |
| APIs | [Monitoring ](DOCS/Core_Monitoring/API_Reference.md ) · [Profiler ](DOCS/Profiler_Management/API_Reference.md ) · [UI ](DOCS/UI/Architecture.md ) |
| Changes | [Changes and results ](DOCS/Changes/README.md ) |
| Code review | [DOCS/code_review/ ](DOCS/code_review/2026-10-05_1607Z_Codebase_Analysis.md ) (state of the code, risks, recommendations; time-stamped) |
2026-01-28 22:37:47 +03:00
2026-10-05 20:30:45 +03:00
The full map: [DOCS/README.md ](DOCS/README.md ).
2026-01-28 22:37:47 +03:00
2026-10-05 20:30:45 +03:00
## Security defaults
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
- No built-in account; the first administrator is seeded once at install time. Change the username and password and enable 2FA in **Account Settings** .
- No default signing key: both APIs refuse to start without a random `OVPMON_API_SECRET_KEY` of at least 32 characters (installers generate one).
- All API routes require a JWT; server and PKI settings are validated before they reach `server.conf` .
- System-service installs: the APIs run as the unprivileged user `ovpmon` ; a root helper (`doas` , fixed commands) installs the validated `server.conf` and controls OpenVPN.
- CORS is same-origin only unless `OVPMON_CORS_ORIGINS` is set; brute-force limits on login.
2026-01-09 10:30:49 +03:00
2026-10-05 20:30:45 +03:00
Keep `easy-rsa/` , `client-config/` , databases and `*.env` out of git: they contain private keys and secrets.
## Repository layout
| Path | Content |
|---|---|
| `APP_UI/` , `APP_CORE/` , `APP_PROFILER/` | the three components (each has its own short README for development) |
| `deploy/docker/` , `deploy/allinone/` , `docker-compose*.yml` | container installation |
| `deploy/native/` , `deploy/ui-dist/` | system-service installation and the ready web UI build |
| `DOCS/` | documentation |
| `DEPLOYMENTS/` | records of one concrete site (not product documentation) |