Files
ayurishchevandClaude Sonnet 5.5 f8cdcd0fc6 Backup and Restore: packages, Local/S3/SFTP/FTP destinations, UI and API
Encrypted packages (databases, PKI, client profiles) with safe restore and
a pre-restore safety copy, usable for server-to-server migration across
container and system-service installs. New Management page, ovp_backups
volume, migrations code in the profiler image, server name in package names.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-07 09:38:09 +03:00

3.7 KiB

Overview

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)
Monitoring API APP_CORE/ Flask (gunicorn) statistics, authentication, accounts 5001, internal
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
                  --/profiles-api/> Profiler API  --> profiler DB, PKI (easy-rsa), client .ovpn files
                                         |--> server.conf --> OpenVPN (root helper in system-service installs)
VPN clients --udp/1194--> OpenVPN

Where the data lives

Data Content
Monitoring DB (SQLite) traffic history and statistics, user accounts, 2FA
Profiler DB (SQLite) client profiles, notes, PKI and server settings
PKI CA, server and client keys and certificates, CRL, ta.key, dh.pem (secret, back it up)
Client profiles generated .ovpn files
server.conf generated by the profiler from the settings in the UI
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

Exact locations per installation method: Containers: volumes, System services: layout. Schema changes on update are handled by database migrations.

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
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.

Where to go next

Install it · Configuration · Monitoring API · Profiler API · UI architecture