dávka GETDATA.BAT (standardně v c:\temp):
C:\WINDOWS\system32\ipfw.exe show >C:\temp\data.txt
upravený wipfw.conf:
# First flush the firewall rules
-f flush
# Localhost rules
add 100 allow all from any to any via lo*
add 101 allow tcp from me to any 80 keep-state out
# Prevent any traffic to 127.0.0.1, common in localhost spoofing
add 110 deny log all from any to 127.0.0.0/8 in
add 110 deny log all from 127.0.0.0/8 to any in
#Testing rules, to find ports used by services if we aren't sure. These rules allow ALL traffic to pass through the firewall, disabling any subsequent rules
#add 140 allow log logamount 500 tcp from any to any
#add 150 allow log logamount 500 udp from any to any
add check-state
add pass all from me to any out keep-state
add count log ip from any to any
upravený loadrules.cmd:
echo 0 > C:\temp\status.txt
"%systemroot%\system32\ipfw" "%cd%\..\wipfw.conf"
Pozor, firewall normálně propouští, je použit pouze na počítání dat