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>
21 lines
831 B
Desktop File
21 lines
831 B
Desktop File
# managed by ovpmon deploy/native (firewall.sh replaces this file only while this marker line is present)
|
|
#
|
|
# Loads the nftables rules of the VPN clients (masquerade, TCP MSS clamp, TTL) at boot.
|
|
# Install: `deploy/native/firewall.sh` renders and enables this unit together with /etc/ovpmon/nftables.nft.
|
|
# Independent of the distribution's nftables.service: only the table `ip ovpmon` is loaded and removed.
|
|
# Guide: DOCS/Deployment/Scenario2_System_Services.md
|
|
[Unit]
|
|
Description=OpenVPN Monitor: NAT, MSS and TTL rules for the VPN clients (nftables)
|
|
Wants=network-pre.target
|
|
Before=network-pre.target
|
|
ConditionPathExists=/etc/ovpmon/nftables.nft
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/sbin/nft -f /etc/ovpmon/nftables.nft
|
|
ExecStop=-/usr/sbin/nft delete table ip ovpmon
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|