From 8b22fa15b55a590d72f21b1d02533f46b0af43b3 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 31 Aug 2013 11:03:01 +1000 Subject: [PATCH] BF: reverted to simplier random rulenum. If your machine is handling 1000s of block the addition complexity isnt what you want --- config/action.d/osx-ipfw.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/action.d/osx-ipfw.conf b/config/action.d/osx-ipfw.conf index b7f2f376..416344a7 100644 --- a/config/action.d/osx-ipfw.conf +++ b/config/action.d/osx-ipfw.conf @@ -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`"