deploy/native/firewall.sh reads the server interfaces and applies, for traffic
from the VPN network to all other networks: masquerade, TCP MSS clamping
(path MTU tuning) and TTL tuning, in its own table `ip ovpmon`. Rules are
persisted in /etc/ovpmon/nftables.nft and loaded at boot by the ovpmon-nft
service (systemd and OpenRC). Opt-in: install.sh and update.sh do not call it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- install.sh always asks for the install directory (--prefix or a prompt
with confirmation, no default); refuses system directories, the
repository checkout itself, paths inside/containing it and non-empty
directories (a resumed install is allowed). A preflight refusal says
nothing was changed.
- UI is part of the repository: committed build in deploy/ui-dist with
SOURCE_HASH and a staleness guard (check-ui.sh, loud warning). install.sh
and update.sh resolve the UI: --ui-dist FILE|DIR, --build-ui, committed
build; install stops without a UI unless --no-ui. update.sh swaps the UI
when its hash differs from the installed one (.ui-source-hash).
- build-ui.sh: --docker, --local (host Node >= 20.19, temporary copy),
--node-download (portable Node, SHA-256 verified), --publish.
- Verified on Alpine 3.23: install without UI options installs the real UI;
local build equals the Docker build; update skips an unchanged UI and
warns on a stale build. --node-download is untested (needs network).
- Docs: Scenario 2 guide, change summary, plan, README.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Variant B: docker-compose.yml gets configurable host ports and health
checks. Variant A: deploy/allinone image (nginx, supervisord, gunicorn,
uvicorn, gatherer, OpenVPN) with an explicit database migration step
before any service; docker-compose.allinone.yml. Same five volumes and
paths in both variants.
- deploy/docker: install.sh, update.sh (backup, build, stop, separate DB
migration phase, start, automatic rollback), backup.sh, restore.sh, lib.sh.
- Verified on Docker: install A/B, update with pre-versioned databases,
rollback after an injected failure, backup/restore.
- Docs: Scenario1_Containers guide, change summary, README, Index;
.dockerignore, .gitignore additions.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>