From: Alexey Sheshka <pulsar@bofh.homeunix.org>
To: lartc@vger.kernel.org
Subject: [LARTC] HTTP traffic limiting
Date: Mon, 12 Aug 2002 21:40:53 +0000 [thread overview]
Message-ID: <marc-lartc-102918843813200@msgid-missing> (raw)
Hello!
Sorry for ugly english.
I was s’tup rules to limit outgoing HTTP traffic :
$TC qdisc add dev $DEVA root handle 1: htb default 30
$TC class add dev $DEVA parent 1: classid 1:1 htb rate 100mbit ceil 100mbit burst 15k
#HTTP 49Mbit
$TC class add dev $DEVA parent 1:1 classid 1:10 htb rate 49mbit ceil 100mbit burst 15k
#Other 51Mbit
$TC class add dev $DEVA parent 1:1 classid 1:30 htb rate 51mbit ceil 100mbit burst 15k
$TC class add dev $DEVA parent 1:10 classid 1:199 htb rate 49Mbit ceil 49mbit burst 15k
$TC qdisc add dev $DEVA parent 1:199 sfq perturb 10
/sbin/iptables -A OUTPUT -t mangle -s x.x.x.x --sport 80 -j MARK --set-mark 199
But it doesn't work ! Users download files via HTTP at full 100Mb, but if replase
last line with
/sbin/iptables -A OUTPUT -t mangle -s x.x.x.x -j MARK --set-mark 199
they got 51Mbit.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-08-12 21:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-12 21:40 Alexey Sheshka [this message]
2002-08-18 18:13 ` [LARTC] HTTP traffic limiting Radosław Łoboda
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=marc-lartc-102918843813200@msgid-missing \
--to=pulsar@bofh.homeunix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox