<br><br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Ali Jawad</b> <<a href="mailto:alijawad1@gmail.com">alijawad1@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br><br>Hi Guys<br><br>Ive got an internet cafe on which I have a debian sarge box running.<br>The Debian box acts as a gateway and it has masquerading on. I have 40<br>
client PC and i do not want to assign more than 64k per pc for upload<br>and the same is true for download too. Ive done alot of research and Ive<br>read tutorials about CBQ and HTB. I found that CBQ.init is the best<br>script to serve my needs. I was successfully able to limit download per
<br>client using the script.<br>However I was not able to limit upload per client whatever method I used.<br><br>Please HELP ME LIMIT THE UPLOADS ON A PER CLIENT BASIS.<br><br>This is my Setup :<br><br>INTERNET ---- eth0 DEBIAN eth1 -- LAN SWITCH ---40 PCS
<br><br>The working CBQ script that I use to limit download for a certain PC is:<br><br>DEVICE=eth1,100Mbit,10Mbit<br>RATE=64Kbit<br>WEIGHT=6Kbit<br>PRIO=5<br>RULE=<a href="http://192.168.1.166">192.168.1.166</a><br><br>The UPLOAD SCRIPT that I use to limit UPLOADS is "NOT WORKING" !!
<br><br>Upload Script "NOT WORKING"<br><br># --------------------------------------------------------------------------<br>DEVICE=eth0,10Mbit,1Mbit<br>RATE=64Kbit<br>WEIGHT=6Kbit<br>PRIO=5<br>RULE=<a href="http://192.168.1.166">
192.168.1.166</a>,<br># --------------------------------------------------------------------------<br><br>As you can see I added the comma at the end of the Rule to indicate the<br>source of the packet..any suggestions or help on how to make this work
<br>are welcome...!!<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.4 (MingW32)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iD8DBQFE7W5pkgA8mKGs24MRArpLAKC4qE/8ApbPDpjZHWegMWoxYnCfyQCgoenV
<br>y7sg+bdQP0L/4Cxv1yg23/o=<br>=Vb6R<br>-----END PGP SIGNATURE-----<br></blockquote></div><br><br clear="all">You will not be able to shape the upload traffic for each client on
eth0 ( after NAT all the packets have the same src address ). You can
do policying or better u can use IMQ ( <a href="http://www.linuximq.net">http://www.linuximq.net</a> ) .<br>
<br><br>