diff --git a/config/action.d/iptables-allports.conf b/config/action.d/iptables-allports.conf index 1cc2daba..f534fee9 100644 --- a/config/action.d/iptables-allports.conf +++ b/config/action.d/iptables-allports.conf @@ -29,7 +29,7 @@ actionstop = iptables -D -p -j fail2ban- # Notes.: command executed once before each actionban command # Values: CMD # -actioncheck = iptables -n -L | grep -q fail2ban- +actioncheck = iptables -n -L | grep -q 'fail2ban-[ \t]' # Option: actionban # Notes.: command executed when banning an IP. Take care that the diff --git a/config/action.d/iptables-multiport.conf b/config/action.d/iptables-multiport.conf index ad554f5c..d062f74d 100644 --- a/config/action.d/iptables-multiport.conf +++ b/config/action.d/iptables-multiport.conf @@ -27,7 +27,7 @@ actionstop = iptables -D -p -m multiport --dports -j f # Notes.: command executed once before each actionban command # Values: CMD # -actioncheck = iptables -n -L | grep -q fail2ban- +actioncheck = iptables -n -L | grep -q 'fail2ban-[ \t]' # Option: actionban # Notes.: command executed when banning an IP. Take care that the diff --git a/config/action.d/iptables-new.conf b/config/action.d/iptables-new.conf index c249de2d..92bd9a55 100644 --- a/config/action.d/iptables-new.conf +++ b/config/action.d/iptables-new.conf @@ -29,7 +29,7 @@ actionstop = iptables -D -m state --state NEW -p --dport | grep -q fail2ban- +actioncheck = iptables -n -L | grep -q 'fail2ban-[ \t]' # Option: actionban # Notes.: command executed when banning an IP. Take care that the diff --git a/config/action.d/iptables.conf b/config/action.d/iptables.conf index 09cfb98b..a846f971 100644 --- a/config/action.d/iptables.conf +++ b/config/action.d/iptables.conf @@ -27,7 +27,7 @@ actionstop = iptables -D -p --dport -j fail2ban- # Notes.: command executed once before each actionban command # Values: CMD # -actioncheck = iptables -n -L | grep -q fail2ban- +actioncheck = iptables -n -L | grep -q 'fail2ban-[ \t]' # Option: actionban # Notes.: command executed when banning an IP. Take care that the