Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Nov 2006 21:37:21 +0100
From:      eternityos@free.fr
To:        freebsd-ipfw@FreeBSD.org
Subject:   Limit bandwidth on some ports more than others
Message-ID:  <1163104641.45539181dca81@imp3-g19.free.fr>

next in thread | raw e-mail | index | archive | help


Hi everyone :)

My traffic shaping is like this:


${fwcmd} pipe 3 config bw 64Kbit/s queue 10Kbytes # Upload
${fwcmd} pipe 4 config bw 192Kbit/s queue 10Kbytes # Download
# Client ID = 9d1884960e7b310b028f5594843310f6
${fwcmd} queue 1 config queue 10KBytes pipe 3 weight 10
${fwcmd} queue 2 config queue 10KBytes pipe 4 weight 10
${fwcmd} 1100 add queue 1 all from 172.16.1.0/30 to any out via ${oif0} # Upload
${fwcmd} 1101 add queue 2 all from any to 172.16.1.0/30 in via ${oif0} #
Download
${fwcmd} 1102 add pass ${dbg} all from 172.16.1.0/30 to any setup

# Client ID = a4a4ba939c4c052378efc827b0d13fec
${fwcmd} queue 3 config queue 10KBytes pipe 3 weight 10
${fwcmd} queue 4 config queue 10KBytes pipe 4 weight 10
${fwcmd} 1103 add queue 3 all from 172.16.91.0/27 to any out via ${oif0} #
Upload
${fwcmd} 1104 add queue 4 all from any to 172.16.91.0/27 in via ${oif0} #
Download
${fwcmd} 1105 add pass ${dbg} all from 172.16.91.0/27 to any setup

# Client ID = 4e03b83b9511d1962436ee81e552586a
${fwcmd} queue 5 config queue 10KBytes pipe 3 weight 10
${fwcmd} queue 6 config queue 10KBytes pipe 4 weight 10
${fwcmd} 1106 add queue 5 all from 172.16.78.0/28 to any out via ${oif0} #
Upload
${fwcmd} 1107 add queue 6 all from any to 172.16.78.0/28 in via ${oif0} #
Download
${fwcmd} 1108 add pass ${dbg} all from 172.16.78.0/28 to any setup




But some of my users have P2P apps...
And I want to limit the p2p to 32Mb/s download and upload because it's
overloading my bandiwdth.
Let's say for example ports 4662 and port 62731...
How could I limit for each subnet the p2p bandwidth with those rules without
affecting everything else ?

Thanks :)
Pierre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1163104641.45539181dca81>