Re: wondershaper question

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gypsy wrote:
> Also
> remember YOU DO NOT SHAPE DOWNLOADS!  HTB can only "police" D/L, not
> "shape".  You must use iptables or IMQ to "shape" D/L; I use iptables -m
> limit --limit ##/second -j ACCEPT
>     iptables -j DROP
> and make sure that these 2 lines preceed any RELATED, ESTABLISHED
> accepts.  Note that the real iptables rules include either --dport ## or
> --sport ##, depending on what the rule accomplishes.  Note further that
> downloads are on INPUT so I specify -A INPUT to throttle D/L.
> 

If you use htb or other shaping qdiscs on a router, you can set it up so
that it sees packets that are leaving both interfaces and can therefore
shape traffic in both directions. Sure, you can't shape traffic destined
for the router itself, but that's rarely an issue.

-Corey
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux