Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2012 18:34:32 +0700
From:      budsz <budiyt@gmail.com>
To:        freebsd-ipfw@freebsd.org
Subject:   Question for Dummynet
Message-ID:  <CADM2n7imrnweXj85YVA43KpPMEAfuWzPfZ%2BAG1mk9j_MofEK4w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADM2n7imrnweXj85YVA43KpPMEAfuWzPfZ%2BAG1mk9j_MofEK4w>