more specific actionunban

pull/340/head
Andy Fragen 2013-09-01 13:09:51 -07:00
parent a4884f82cd
commit fe557e5900
1 changed files with 1 additions and 2 deletions

View File

@ -44,8 +44,7 @@ actionban = ipfw add <rulenum> set <setnum> <blocktype> log <block> from <ip> to
# Tags: <ip> IP address
# Values: CMD
#
actionunban = ipfw delete `ipfw list | grep -i <ip> | grep -i <port> | awk '{print $1;}'`
#actionunban = ipfw delete `ipfw list | sed -n '/^\([0-9]*\) set <setnum> <blocktype> log <block> from <ip> to <dst> ?<port>$/s//\1/p'`
actionunban = ipfw delete `ipfw -S list | grep -i 'set <setnum> <blocktype> log <block> from <ip> to <dst>' | awk '{print $1;}'`
[Init]