#!/bin/sh

/sbin/ipfw -q -f flush
/sbin/ipfw -q -f pipe flush

#Icmp
/sbin/ipfw -q add 00010 deny icmp from any to any in icmptype 5,9,13,14,15,16,17

/etc/ipfw/nat_rules.sh

/sbin/ipfw -q add 01909 allow all from me to any
/sbin/ipfw -q add 01910 allow all from any to me

/etc/ipfw/pipe_rules.sh

/sbin/ipfw -q pipe 30 config bw 20Kbit/s mask dst-ip 0xffffffff
/sbin/ipfw -q pipe 31 config bw 20Kbit/s mask src-ip 0xffffffff
/sbin/ipfw -q pipe 32 config bw 1000Kbit/s mask src-ip 0xffffffff


