All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Hickey <bugfood-ml@fatooh.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] wondershaper question
Date: Fri, 02 Apr 2004 16:40:14 +0000	[thread overview]
Message-ID: <406D976E.7060105@fatooh.org> (raw)
In-Reply-To: <9911B83A96D5CF44B5F326FF60E6EB690AD14F@mailsvr.leadingside.com.my>

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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2004-04-02 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-02  2:03 [LARTC] wondershaper question Chris Winfield-Blum
2004-04-02  2:54 ` Jason Boxman
2004-04-02  3:29 ` Chris Winfield-Blum
2004-04-02  4:38 ` Corey Hickey
2004-04-02 15:03 ` gypsy
2004-04-02 15:44 ` gypsy
2004-04-02 16:40 ` Corey Hickey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=406D976E.7060105@fatooh.org \
    --to=bugfood-ml@fatooh.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.