Start nftables systemd unit earlier

Source: nftables 0.9.8-3.1 from Debian Bullseye
Thanks to @kravietz − PR #19
This commit is contained in:
Jeremy Gardais 2021-07-30 11:15:34 +02:00
parent abdc15191b
commit a34e5441a9
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,7 @@
### Fixed ### Fixed
* Ansible-lint: Fix line longer than 160 chars. * Ansible-lint: Fix line longer than 160 chars.
* Start nftables systemd unit earlier (thanks to @kravietz PR #19).
## v1.7.0 ## v1.7.0

View File

@ -2,7 +2,10 @@
[Unit] [Unit]
Description={{ nft_service_name }} Description={{ nft_service_name }}
Documentation=man:nft(8) http://wiki.nftables.org Documentation=man:nft(8) http://wiki.nftables.org
;Before=fail2ban.service Wants=network-pre.target
Before=network-pre.target shutdown.target
Conflicts=shutdown.target
DefaultDependencies=no
[Service] [Service]
Type=oneshot Type=oneshot
@ -17,4 +20,4 @@ ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }}
ExecStop={{ nft__bin_location }} flush ruleset ExecStop={{ nft__bin_location }} flush ruleset
[Install] [Install]
WantedBy=multi-user.target WantedBy=sysinit.target