add support to enable routing

This commit is contained in:
nd 2020-08-07 23:10:46 +02:00
parent a3f13ff8da
commit 8a8192749b
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
5 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,14 @@
[Unit]
Description=Enables forwarding in the linux kernel after the firewall is fully loaded
After=nftables.service
Requires=nftables.service
[Service]
RemainAfterExit=yes
Type=oneshot
ExecStart=/usr/local/bin/netforwarding start
ExecStop=/usr/local/bin/netforwarding stop
[Install]
WantedBy=multi-user.target