service ipfw restart
.#!/bin/sh
/sbin/ipfw -q flush
/sbin/ipfw -q add 65534 allow ip from any to any
chmod +x /usr/local/etc/ipfw-open.conf
/usr/local/etc/ipfw-open.conf
ipfw show
65534 474 79469 allow ip from any to any
65535 3 192 deny ip from any to any
...
net.inet.ip.fw.default_to_accept=1
libalias_load="YES"
ipfw_load="YES"
ipfw_nat="YES"
#!/bin/sh
ipfw -q -f flush
ipfw -q add 00001 allow all from 192.168.1.0/24 to any via vtnet0
#!/bin/sh
ipfw -q -f flush
/sbin/ipfw -q add 10 allow ip from any to any via $lanif
/sbin/ipfw -q add 20 allow ip from any to any via lo0