From: "Antonio Pérez" <aperlu@telefonica.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] limiting upload rate
Date: Mon, 04 Apr 2005 21:05:43 +0000 [thread overview]
Message-ID: <4251AC27.2060306@telefonica.net> (raw)
hi,
I have a lan with internet conection, the gateway is a server linux. I
have a client (192.168.0.33) that i want limit his upload rate to
64kbit/s so I do:
tc qdisc del dev ppp0 root
tc qdisc add dev ppp0 root handle 1: htb r2q 1
tc class add dev ppp0 parent 1: classid 1:2 htb rate 64kbit ceil 64kbit
burst 6k
tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 0x1 fw
classid 1:2
iptables -t mangle -A PREROUTING -s 192.168.0.33 -j MARK --set-mark 0x1
iptables -t mangle -A PREROUTING -s 192.168.0.33 -j RETURN
but this do not work, any sugestions?
thanks.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
reply other threads:[~2005-04-04 21:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4251AC27.2060306@telefonica.net \
--to=aperlu@telefonica.net \
--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.