mirror of https://github.com/fail2ban/fail2ban
BF: reverted to simplier random rulenum. If your machine is handling 1000s of block the addition complexity isnt what you want
parent
808aa1a792
commit
8b22fa15b5
|
@ -79,6 +79,9 @@ blocktype = unreach port
|
||||||
setnum = 10
|
setnum = 10
|
||||||
|
|
||||||
# Option: number for ipfw rule
|
# Option: number for ipfw rule
|
||||||
# Notes: This is ment to be automaticly generated and not overwritten
|
# Notes: This is meant to be automaticly generated and not overwritten
|
||||||
# Values: Random value between 10000 and 12000
|
# Values: Random value between 10000 and 12000
|
||||||
rulenum = "`a=$((RANDOM%%2000+10000)); while ipfw show | grep -q ^$a\ ; do a=$((RANDOM%%2000+10000)); done; echo $a`"
|
rulenum="`echo $((RANDOM%%2000+10000))`"
|
||||||
|
|
||||||
|
# Duplicate prevention mechanism
|
||||||
|
#rulenum = "`a=$((RANDOM%%2000+10000)); while ipfw show | grep -q ^$a\ ; do a=$((RANDOM%%2000+10000)); done; echo $a`"
|
||||||
|
|
Loading…
Reference in New Issue