diff --git a/hooks/post_iptable_rules/52-fail2ban b/hooks/post_iptable_rules/52-fail2ban deleted file mode 100755 index f350dbf7b..000000000 --- a/hooks/post_iptable_rules/52-fail2ban +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -systemctl restart fail2ban diff --git a/src/firewall.py b/src/firewall.py index 310d263c6..392678fe1 100644 --- a/src/firewall.py +++ b/src/firewall.py @@ -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"))