From: Masanao Yasui <yasui@isp.co.jp>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: LARTC digest, Vol 1 #1647 - 2 msgs
Date: Tue, 23 Mar 2004 08:15:45 +0000 [thread overview]
Message-ID: <405FF231.4080700@isp.co.jp> (raw)
lartc-request@mailman.ds9a.nl wrote:
> --__--__--
>
> Message: 1
> From: "Morten Kramer" <tuxpower2k3@uni.de>
> To: <lartc@mailman.ds9a.nl>
> Date: Mon, 22 Mar 2004 21:00:14 +0100
> Subject: [LARTC] How to limit the Upload speed for an specific IP?
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0255_01C41050.ABDECCF0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello,
>
> I want to limit the upload speed for the eth0 Interface for an specific > IP.
>
> I used the following script, but its only limits the DOWNLOAD speed.But > i want to limit both!
>
> DEV='eth0'
> tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit
> tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 > prio 5 bounded isolated
> tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst > 192.168.0.2 flowid 1:1
>
Hello,
If you change "dst" into "src",
you can control outgoing traffic rate..., I think.
--
Masanao Yasui
mailto:yasui@isp.co.jp
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2004-03-23 8:15 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=405FF231.4080700@isp.co.jp \
--to=yasui@isp.co.jp \
--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