From ca92ec08f2f2f8c7c453f7c174aae2fa1569e70a Mon Sep 17 00:00:00 2001 From: Yann Autissier Date: Tue, 16 May 2023 19:56:00 +0000 Subject: [PATCH] keep fail2ban rules on firewall reload reloading firewall flushes all iptables rules to create new ones, dropping fail2ban rules in the same time. --- hooks/post_iptable_rules/52-fail2ban | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 hooks/post_iptable_rules/52-fail2ban diff --git a/hooks/post_iptable_rules/52-fail2ban b/hooks/post_iptable_rules/52-fail2ban new file mode 100755 index 000000000..f350dbf7b --- /dev/null +++ b/hooks/post_iptable_rules/52-fail2ban @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +systemctl restart fail2ban