Link to home
Start Free TrialLog in
Avatar of schnibitz
schnibitz

asked on

packet shaping tc question

Hi everyone, I tried following the tutorial here:

http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/

There's actually several tutorials.  It's the second one that starts with "Example: HTTP Outbound Traffic Shaping"

So here's what happens when I run that.  First off, it seems to work at first!  But after a bit more testing I find out that it's working a bit TOO well.  It seems to be shaping all IP traffic regardless of the iptables marking etc.  I know this because even when I stop iptables, my downloads are STILL throttled.  Anyway my downloads shouldn't be throttled at all regardless because from what I can tell only OUTBOUND traffic should be affected.

I'm VERY green with tc, so I'm sure that there is plenty I'm missing.  I've read through the man pages, and can't seem to find out what I'm missing.  Any assistance would be much appreciated.

-S
Avatar of schnibitz
schnibitz

ASKER

I got it working finally.  You need to specify the iptable stuff first, then the rest.  The "default" portion of TC was causing shaping to occur regardless of port 80 traffic being matched.  Will post final working code tomorrow.
ASKER CERTIFIED SOLUTION
Avatar of schnibitz
schnibitz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial