| 1 | [Unit] |
| 2 | Description=nftables |
| 3 | Documentation=man:nft(8) http://wiki.nftables.org |
| 4 | Wants=network-pre.target |
| 5 | Before=network-pre.target shutdown.target |
| 6 | Conflicts=shutdown.target |
| 7 | DefaultDependencies=no |
| 8 | |
| 9 | [Service] |
| 10 | Type=oneshot |
| 11 | RemainAfterExit=yes |
| 12 | StandardInput=null |
| 13 | ProtectSystem=full |
| 14 | ProtectHome=true |
| 15 | ExecStart=/usr/sbin/nft -f /etc/nftables.conf |
| 16 | ExecReload=/usr/sbin/nft -f /etc/nftables.conf |
| 17 | ExecStop=/usr/sbin/nft flush ruleset |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=sysinit.target |