Files
OpenVPN-Monitoring-Simple/DOCS/Deployment
ayurishchevandClaude Sonnet 5.5 79c950f8f7 Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies
- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162)
- pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE
- health check: show the service log when an HTTP check fails
- update.sh: the "before" version comes from deploy.state
- migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing
- docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT
- tests: new test for the section parameter, fixed test_server_process.py

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:03:39 +03:00
..

Installation

Two ways to install, both with scripts that check the host, generate the secrets, start everything and print the first administrator login. Pick one; the steps after the install are the same: First steps.

Choose a method

Containers System services
Choose it when the host has Docker, or you want the simplest operation no containers wanted; Alpine, Debian or Ubuntu host
Needs on the host Docker Engine with the compose plugin, /dev/net/tun root, Internet access, Alpine 3.23 / Debian 12 / Ubuntu 24.04
Install command deploy/docker/install.sh --variant a|b deploy/native/install.sh --prefix DIR
Variants A: everything in one container; B: one container per component one per OS (the script detects it)
Web UI address http://<host> (port 80, change with --http-port); put TLS in front https://<host>:8088 (self-signed certificate, change with --https-port)
VPN port 1194/udp (--vpn-port) 1194/udp by default, set in the UI
Free space about 2 GB about 1 GB
Update, backup, rollback update.sh, backup.sh, restore.sh in deploy/docker/ update.sh, backup.sh, restore.sh in deploy/native/
Details Containers System services

Not sure? If Docker is already on the host, use Containers, variant A; otherwise System services.

Use one method per host: both use the VPN port 1194/udp by default. For containers, only one variant can run at a time.

The same in both methods

  • Run the script as root (or, for containers, as a member of the docker group) from a clone of this repository.
  • The script prints the URL and the administrator password once; it is stored nowhere else. No default account exists.
  • Containers: running install.sh again is safe, it keeps .env and the data. System services: after a failed install, run it again to resume; a finished installation is changed only with update.sh.
  • Updates always take a verified backup first and roll back automatically if something fails.
  • The scripts do not open firewall ports and do not harden SSH. Open the UI port and the VPN port yourself; NAT for the VPN clients: Firewall (containers set their own NAT rules).

After the install

First steps: sign in, secure the account, initialize the PKI, configure and start the VPN server, create the first client profile.

Other pages

Topic Page
Configuration variables General: Configuration
Nginx and TLS for the UI Nginx configuration
Database schema changes on update Database migrations
Security model Security architecture