add contrib
This commit is contained in:
18
contrib/systemd/capport-nftables.service
Normal file
18
contrib/systemd/capport-nftables.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=NFT Firewall Shim for Captive Portal
|
||||
Wants=network-pre.target
|
||||
Before=network-pre.target shutdown.target
|
||||
Conflicts=shutdown.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
StandardInput=null
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
ExecStart=/usr/sbin/nft -f /etc/nftables.conf
|
||||
ExecReload=/usr/sbin/nft -f /etc/nftables.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
Reference in New Issue
Block a user