diff --git a/config/action.d/firewallcmd-new.conf b/config/action.d/firewallcmd-new.conf index e64601e1..261573ba 100644 --- a/config/action.d/firewallcmd-new.conf +++ b/config/action.d/firewallcmd-new.conf @@ -16,7 +16,7 @@ actionstop = firewall-cmd --direct --remove-rule filter 0 -m st firewall-cmd --direct --remove-rules filter f2b- firewall-cmd --direct --remove-chain filter f2b- -actioncheck = firewall-cmd --direct --get-chains filter | grep -q 'f2b-$' +actioncheck = firewall-cmd --direct --get-chains ipv4 filter | sed -e 's, ,\n,g' | grep -q 'f2b-$' actionban = firewall-cmd --direct --add-rule filter f2b- 0 -s -j