All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roy" <roy@xxx.lt>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Control Bandwidth
Date: Thu, 01 Apr 2004 20:47:27 +0000	[thread overview]
Message-ID: <003e01c4182a$8bba4530$030aa8c0@t> (raw)
In-Reply-To: <HVHZ1J$C139CBD9625047AA2BC6B8698A470986@bol.com.br>

This script will not work for upload unles used on my imq interface.
or umless used on separate computer which works as bridge.
or if you DO NOT use nat.

only download shaping will work in other case.
or you must mark upload packets in prerouting chain.
because else tc will see only your server's  ip



----- Original Message ----- 
From: "andybr" <andybr@bol.com.br>
To: "Lartc List" <lartc@mailman.ds9a.nl>
Sent: Thursday, April 01, 2004 6:00 PM
Subject: [LARTC] Control Bandwidth


Hi all,

I need a little help, i am studing htb to control user
bandwidth (download/upload) and I made a script as
below to test. I am testing using ttcp tool from by
linux box to other linux (192.168.200.51).
my box <---- Linux =ore than 128kbit
mybot -----> Linux =et 128kbit

But I want to control both ways, what am I missing?


script:
EXTIF=h0
INTIF=h1
TC=bin/tc
DOWN\x128
UPd
IP\x192.168.200.201
##################
#
$TC qdisc del $EXTIF root 2> /dev/null > /dev/null
#
$TC qdisc add dev $EXTIF root handle 0: htb default 1
$TC class add dev $EXTIF parent 0: classid 1 htb rate
128Kbit ceil 128Kbit
#
$TC filter add dev $EXTIF protocol ip parent 0:0 prio 1
u32 match ip src $IP flowid 1
$TC filter add dev $EXTIF protocol ip parent 0:0 prio 1
u32 match ip dst $IP flowid 1

Thanks,
Anderson


__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


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

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

  parent reply	other threads:[~2004-04-01 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 15:00 [LARTC] Control Bandwidth andybr
2004-04-01 19:21 ` Alessandro O. Ungaro
2004-04-01 20:47 ` Roy [this message]
2004-04-02  8:26 ` Adrian Saileanu

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='003e01c4182a$8bba4530$030aa8c0@t' \
    --to=roy@xxx.lt \
    --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.