|
|
|
@ -20,7 +20,7 @@ actionstop = firewall-cmd --direct --remove-rule ipv4 filter <chain> 0 -m state
|
|
|
|
|
firewall-cmd --direct --remove-rules ipv4 filter fail2ban-<name>
|
|
|
|
|
firewall-cmd --direct --remove-chain ipv4 filter fail2ban-<name>
|
|
|
|
|
|
|
|
|
|
actioncheck = firewall-cmd --direct --get-chains ipv4 filter | grep -q 'fail2ban-<name>[ \t]'
|
|
|
|
|
actioncheck = firewall-cmd --direct --get-chains ipv4 filter | grep -Eq 'fail2ban-<name>$|fail2ban-<name> '
|
|
|
|
|
|
|
|
|
|
actionban = firewall-cmd --direct --add-rule ipv4 filter fail2ban-<name> 0 -s <ip> -j <blocktype>
|
|
|
|
|
|
|
|
|
|