|
|
|
@ -17,10 +17,10 @@ actionstop = firewall-cmd --direct --remove-rule ipv4 filter <chain> 0 -j f2b-<n
|
|
|
|
|
firewall-cmd --direct --remove-chain ipv4 filter f2b-<name>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Note: uses regular expression word boundaries '\b'
|
|
|
|
|
# Example actioncheck: firewall-cmd --direct --get-chains ipv4 filter | grep -q '\bf2b-recidive\b'
|
|
|
|
|
# Note: uses regular expression whitespaces '\s' & end of line '$'
|
|
|
|
|
# Example actioncheck: firewall-cmd --direct --get-chains ipv4 filter | grep -q '\sf2b-recidive$'
|
|
|
|
|
|
|
|
|
|
actioncheck = firewall-cmd --direct --get-chains ipv4 filter | grep -q '\bf2b-<name>\b'
|
|
|
|
|
actioncheck = firewall-cmd --direct --get-chains ipv4 filter | grep -q '\sf2b-<name>$'
|
|
|
|
|
|
|
|
|
|
actionban = firewall-cmd --direct --add-rule ipv4 filter f2b-<name> 0 -s <ip> -j <blocktype>
|
|
|
|
|
|
|
|
|
|