Gmail doesn't want to display the rules file without downloading. I figure others have that issue too. Here are the lines copied.
#!/bin/sh
alias ipfw="ipfw -q"
# Set the maximum number of dynamic rules
sysctl net.inet.ip.fw.dyn_max=65536 > /dev/null
sysctl net.inet.ip.fw.dyn_buckets=4096 > /dev/null
# Flush the old rules
$ipfw -f flush
# This brakes IPv6!
sysctl net.inet.ip.fw.one_pass=0 > /dev/null
$ipfw add 100 reass ip4 from any to any in
$ipfw add allow tcp from 'table(staff_ips)' to me 22 in
$ipfw add allow tcp from me 22 to 'table(staff_ips)' out
$ipfw add 39999 check-state
$ipfw add allow tcp from 'table(staff_ips)' to 12.34.56.78 443 in via em1
$ipfw add allow tcp from 12.34.56.78 443 to 'table(staff_ips)' out via em1
# Deny most traffic inbound on em1
$ipfw add deny $logall all from not me to not me in via em1
# Allow everyting behind firewall to ping out by default
$ipfw add allow icmp from not me to not me out via em1 keep-state
# Allow all traffic on 'inside' interface and the bridge
$ipfw add allow all from not me to not me via em2
$ipfw add allow all from not me to not me via bridge0
# Block multicast without logging
$ipfw add deny ip4 from any to
224.0.0.0/8# Block (windows) probes without logging
$ipfw add deny udp from any to any 137-139
# Allow essential icmp messages
$ipfw add 60000 allow icmp from any to any out
$ipfw add 60100 allow icmp from any to any in icmptypes 0 // echo-reply
$ipfw add 60200 allow icmp from any to any in icmptypes 3 // destination unreachable
$ipfw add 60300 allow icmp from any to any in icmptypes 11 // time exceeded
# Allow essential icmp6 messages
$ipfw add 61000 allow ipv6-icmp from any to any out
$ipfw add 61100 allow ipv6-icmp from fe80::/10 to any in
$ipfw add 61200 allow ipv6-icmp from any to ff02::/32 in
$ipfw add 61300 allow ipv6-icmp from any to any in icmp6types 1 // destination unreachable
$ipfw add 61400 allow ipv6-icmp from any to any in icmp6types 2 // packet too big
$ipfw add 61500 allow ipv6-icmp from any to any in icmp6types 3 // time exceeded
$ipfw add 61600 allow ipv6-icmp from any to any in icmp6types 4 // parameter problem
$ipfw add 61700 allow ipv6-icmp from any to any in icmp6types 129 // echo-reply
$ipfw add 61800 allow ipv6-icmp from any to any in icmp6types 133,134,135,136
# Allow everything out with state
$ipfw add 63000 allow tcp from any to any out setup keep-state
$ipfw add 63100 allow udp from any to any out keep-state
$ipfw add 63200 allow ip from any to any out
$ipfw add 65520 deny icmp from any to any in icmptypes 8 // echo request
$ipfw add 65521 deny ipv6-icmp from any to any in icmp6types 128 // echo request
$ipfw add 65522 deny udp from any to any 33434-33534 in // traceroute
$ipfw add 65523 deny ip from any to 255.255.255.255
$ipfw add 65530 deny log ip from any to any