mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
keep fail2ban rules on firewall reload (#1661)
* keep fail2ban rules on firewall reload reloading firewall flushes all iptables rules to create new ones, dropping fail2ban rules in the same time. * restart fail2ban instead of reload Reloading fail2ban does not create f2b-* iptables rules.
This commit is contained in:
parent
d69c196fe4
commit
f9850a2264
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue