All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] wonder shaper quick question
Date: Sat, 01 Mar 2003 23:34:00 +0000	[thread overview]
Message-ID: <marc-lartc-104656193022287@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104656089521509@msgid-missing>

Miguel,

Take a look at the script, and you'll see that class 1:10 has the highest
priority.  Simply add a "tc filter" command which selects your src IP and
drops it into this class.

You could also select flowid 0: for no cap on your outbound bandwidth (if
you are using HTB):

MIGUEL\x192.168.0.5
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
      match ip src $MIGUEL flowid 0:

BOSS\x192.168.0.8
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
      match ip src $BOSS flowid 0:

If you poke around in the script, you'll see how easy it is to modify the
script.

You could easily adapt this script to have two leaf classes off the root
qdisc....but if you are going to do so, you'll want to read up on the
LARTC site and docum.org.

Good luck,

-Martin

 : hello i just got wshaper1.1 and it was really nice and fast the way it
 : limit the banwidth but now i have a question is there a way that i can
 : set my eth0 to have 160kbits for everyone except me and my boss?
 :
 : and i would like not to limit my boss or myself do i have to put another
 : nic or is there a way to get excluded? or is there a way to set lile
 : 192.168.0.5 gets 140 kbits while 192.168.0.8 get 180kbits
 :
 :
 : thanx all and hello
 :
 : Miguel Cavazos
 :
 : _______________________________________________
 : LARTC mailing list / LARTC@mailman.ds9a.nl
 : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 :

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com

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

      reply	other threads:[~2003-03-01 23:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-01 17:16 [LARTC] wonder shaper quick question Miguel Cavazos
2003-03-01 23:34 ` Martin A. Brown [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=marc-lartc-104656193022287@msgid-missing \
    --to=mabrown-lartc@securepipe.com \
    --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.