Native install: nftables script for VPN clients (masquerade, MSS clamp, TTL)

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>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-05 14:48:39 +03:00
1 parent 8371d889a4
commit f95a0b63e6
9 files changed
+713 -3

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@
# POSIX sh (dash, busybox ash, bash); `local` is used in functions (supported by all of them).
# Contains the OS adapter: Alpine (OpenRC), Debian and Ubuntu (systemd).
# Nothing here ever deletes a database, the PKI (APP_PROFILER/easy-rsa) or client configs
# (APP_PROFILER/client-config), and nothing touches the firewall.
# (APP_PROFILER/client-config), and nothing touches the firewall except the separate opt-in script
# firewall.sh (its own nftables table `ip ovpmon`).
ROOT_DIR=$(cd "$SCRIPT_DIR/../.." && pwd)