Drop fail2ban restart from nftables unit
This commit is contained in:
parent
89619c8ef3
commit
1674155bab
|
@ -12,15 +12,9 @@ StandardInput=null
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nft__fail2ban_service %}
|
|
||||||
ExecStart=/usr/sbin/nft -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service
|
|
||||||
ExecReload=/usr/sbin/nft -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service
|
|
||||||
ExecStop=/bin/systemctl stop fail2ban.service ; /usr/sbin/nft flush ruleset
|
|
||||||
{% else %}
|
|
||||||
ExecStart=/usr/sbin/nft -f {{ nft_main_conf_path }}
|
ExecStart=/usr/sbin/nft -f {{ nft_main_conf_path }}
|
||||||
ExecReload=/usr/sbin/nft -f {{ nft_main_conf_path }}
|
ExecReload=/usr/sbin/nft -f {{ nft_main_conf_path }}
|
||||||
ExecStop=/usr/sbin/nft flush ruleset
|
ExecStop=/usr/sbin/nft flush ruleset
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue