ipfw Bandwidth Limit Under FreeBSD
- Insert the following into the kernel configuration file:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_DEFAULT_TO_ACCEPT
options DUMMYNET - Compile your kernel.
- Do the following to have the bandwidth limited to 192.168.1.2:
ipfw add 100 pipe 1 ip from any to 192.168.1.2/32 out
ipfw add 200 pipe 2 ip from any to any out
ipfw pipe 1 config bw 100Mbits/s
ipfw pipe 2 config bw 1500Kbits/s
0 Comments