Willy Tu | 5538c16 | 2021-02-10 11:44:57 -0800 | [diff] [blame^] | 1 | [Unit] |
2 | Before=network-pre.target | ||||
3 | |||||
4 | [Service] | ||||
5 | Type=oneshot | ||||
6 | RemainAfterExit=yes | ||||
7 | ExecStart=/bin/bash -c 'echo /etc/nftables/*.rules | xargs -n 1 nft -f' | ||||
8 | ExecStop=/bin/bash -c 'nft flush ruleset' | ||||
9 | |||||
10 | [Install] | ||||
11 | WantedBy=multi-user.target |