From mboxrd@z Thu Jan 1 00:00:00 1970 From: Optimum Wireless Services Subject: Re: How can I test my tc script? Date: Sat, 05 Feb 2011 22:14:57 -0400 Message-ID: <1296958497.3695.18.camel@debian-laptop.OptimumWireless> References: <1296699466.4606.14.camel@debian-laptop.OptimumWireless> <1296761916.7587.29.camel@andybev> <1296873898.3644.4.camel@debian-laptop.OptimumWireless> <1296886030.4568.6.camel@debian-laptop.OptimumWireless> <1296908825.1695.8.camel@andybev> Reply-To: wilson@optimumwireless.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1296908825.1695.8.camel@andybev> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Andrew Beverley Cc: netfilter@vger.kernel.org On Sat, 2011-02-05 at 12:27 +0000, Andrew Beverley wrote: > On Sat, 2011-02-05 at 02:07 -0400, Optimum Wireless Services wrote: > > Now, for the upload I cant get it shape with squid running in the > > middle. If I remove squid then, traffic shaping works ok. > > > > If you are doing egress shaping on the internet facing interface for the > upload (which I assume you are - you can't use HTB on ingress), then it > will not work for Squid. That's because Squid's traffic leaving the > server is coming from the server's IP address, not from the client's IP > address (Squid is generating the traffic, not the client). Therefore, > your filter will never match the traffic. Normal traffic from a client > is forwarded and retains its source IP address. > Do you think I should go back to this method? I have 120 users now but, that number should be increasing. Which method do you recommend? > One way to shape Squid traffic per client source IP address would be to > mark the packets that are coming in from the local network (as you were > doing before) and then use Squid's mark preservation feature to retain > the packet's mark. However, you can't use U32 classifiers - you'll have > to go back to marking packets. > > > Andy recommended to use ifb but, I don't know where to get the download > > from. Is supposed to be on kernel 2.26.20 and up and I'm running a > > kernel that "qualifies" but, cant really get ifb to do anything. > > No need for IFB in your case. That's only if you want to shape multiple > interfaces within one qdisc. > > Andy > >