diff options
Diffstat (limited to 'debian/nftables.service')
-rw-r--r-- | debian/nftables.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/nftables.service b/debian/nftables.service new file mode 100644 index 0000000..769c9fc --- /dev/null +++ b/debian/nftables.service @@ -0,0 +1,20 @@ +[Unit] +Description=nftables +Documentation=man:nft(8) http://wiki.nftables.org +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 +ExecStop=/usr/sbin/nft flush ruleset + +[Install] +WantedBy=sysinit.target |