Limit bandwidth on some ports more than others

eternityos at free.fr eternityos at free.fr
Wed Nov 15 13:56:33 UTC 2006



Come on, Noone to help me on this one ?
It's just 2 pipes (upload/download)
and 6 queues (3 for upload / 3 for download)
I just want to limitate bandwidth some more on ports
4662 and port 62731...

Anyone please ?



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
_______________________________


More information about the freebsd-ipfw mailing list