restart fail2ban instead of reload

Reloading fail2ban does not create f2b-* iptables rules.
This commit is contained in:
Yann Autissier 2023-05-20 17:09:35 +00:00
parent ca92ec08f2
commit 17084a1d60
2 changed files with 1 additions and 6 deletions

View file

@ -1,5 +0,0 @@
#!/bin/bash
set -e
systemctl restart fail2ban

View file

@ -331,7 +331,7 @@ def firewall_reload(skip_upnp=False):
# Refresh port forwarding with UPnP
firewall_upnp(no_refresh=False)
_run_service_command("reload", "fail2ban")
_run_service_command("restart", "fail2ban")
if errors:
logger.warning(m18n.n("firewall_rules_cmd_failed"))