OpenVPN Monitor & Profiler is a web suite for an OpenVPN server: live traffic statistics and history, PKI and client-profile management, and the server process control, all in one UI.
## Components
| Component | Dir | Stack | What it does | Port |
|---|---|---|---|---|
| UI | `APP_UI/` | Vue 3 + Vite, served by Nginx | the web interface | 80 (containers, plain HTTP) / 8088 (system services, HTTPS) |
| Data gatherer | `APP_CORE/` | Python daemon | reads the OpenVPN status log into the monitoring database | none |
| Profiler API | `APP_PROFILER/` | FastAPI (uvicorn) | PKI (easy-rsa), client profiles, server configuration, OpenVPN process control | 8000, internal |
| OpenVPN | system package or container | | the VPN server itself, started from the UI | 1194/udp (default) |
Nginx is the only public entry point: `/` is the UI, `/api/` the Monitoring API, `/profiles-api/` the Profiler API. Both APIs listen on `127.0.0.1` (or the internal container network) only.
```
Browser --> Nginx --/-----------> UI files
--/api/-------> Monitoring API --> monitoring DB <-- Data gatherer <-- openvpn-status.log
| Backup settings (SQLite `ovpmon_backup.db`, next to the profiler DB) | backup destinations (secrets encrypted), passphrase, history; not part of a backup package |
| Local backup packages | `/var/lib/ovpmon/backups` (system services) or volume `ovp_backups` at `/app/backups` (containers); see [Backup and Restore](../Profiler_Management/Backup_Restore.md) |
Exact locations per installation method: [Containers: volumes](../Deployment/Containers/Reference.md), [System services: layout](../Deployment/System_Services/Reference.md). Schema changes on update are handled by [database migrations](Database_Migrations.md).
## Glossary
| Term | Meaning |
|---|---|
| PKI | the certificate authority and the certificates issued by it; must be initialized once before the VPN server can be configured |
| Profile / client | one VPN user: a certificate plus the `.ovpn` file given to the user |
| Gatherer | the daemon that turns the OpenVPN status log into statistics |
| Root helper | (system services only) a small root script through which the unprivileged API installs `server.conf` and controls OpenVPN; see [Security architecture](Security_Architecture.md) |
| Variant A / B | the two container layouts: everything in one container / one container per component |
## Security in short
No built-in account (the first administrator is seeded once at install time); every API route needs a JWT; 2FA is available per user; server settings are validated before they reach the OpenVPN configuration; in system-service installs the APIs run as an unprivileged user. Details: [Security architecture](Security_Architecture.md).