Question for Dummynet

budsz budiyt at gmail.com
Fri Jan 6 12:05:32 UTC 2012


Halo,

I used this rulesset over 2 years, something my ruleset like this:

bwcldown="320Kbit/s"
bwclup="48Kbit/s"
ifint0="rl0" # Interface direct to LAN switch

${fwcmd} add 52 pipe 2 ip from not "table(2)" to "table(6)" via ${ifint0}
${fwcmd} add 53 pipe 3 ip from "table(6)" to not "table(2)" via ${ifint0}
${fwcmd} pipe 2 config bw ${bwcldown} mask dst-ip 0xffffffff
${fwcmd} pipe 3 config bw ${bwclup} mask src-ip 0xffffffff

Whereis: contain of table(2) all of internal address/LAN, and table(6)
contain host of my LAN.

My problem is:

For traffic downloading/uploading entry to rule 52 (320Kbit/s for
download and upload). As far I know,
if I do downloading from internet entry for rule 52 and if I do
uploading to internet entry for rule 53.

My idea is how to limit each host on my LAN for download=320Kbit/s and
upload=48Kbit/s.

IMHO, this rule working for FreeBSD 7.1 - 7.2 STABLE, 3 days ago I do
"make world" and problem showing.

Now, My system running FreeBSD 7.4-STABLE

Thank for your time.

-- 
budsz


More information about the freebsd-ipfw mailing list