BF: reverted to simplier random rulenum. If your machine is handling 1000s of block the addition complexity isnt what you want

pull/344/head
Daniel Black 2013-08-31 11:03:01 +10:00
parent 808aa1a792
commit 8b22fa15b5
1 changed files with 5 additions and 2 deletions

View File

@ -79,6 +79,9 @@ blocktype = unreach port
setnum = 10
# 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
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`"