20 lines
831 B
Desktop File
20 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
|