ckear_ipfw:
======================
#!/bin/sh
n=999
while [ $n -lt 3000 ]
do
n=`expr $n + 1`
m=`expr $n + 3000`
ipfw delete $n
ipfw delete $m

done
======================

update_ipfw
======================
#!/bin/sh

fetch http://noc.ua-ix.net.ua/ua-list.txt

awk ‘{i=1000;
while(getline)
{ if($1 ~ /d*.d*/)
{
net = $1
if(net ~ /.0$/) net = net»/24″
system («ipfw add » i » allow ip from » net » to me via rl0″);
system («ipfw add » i+1 » allow ip from me to » net » via rl0″);

system («ipfw add » i+3000 » count ip from » net » to me via rl0″);
system («ipfw add » i+3001 » count ip from me to » net » via rl0″);
i=i+2;
}
}
}’
ua-list.txt
======================