From: Alexey Sheshka <pulsar@bofh.homeunix.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] fw mark torouble
Date: Fri, 01 Nov 2002 11:23:58 +0000 [thread overview]
Message-ID: <marc-lartc-103614987724013@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103614424220026@msgid-missing>
On Fri, 1 Nov 2002 11:54:08 +0100
Stef Coene <stef.coene@docum.org> wrote:
> On Friday 01 November 2002 10:50, Alexey Sheshka wrote:
> > Hi!
> >
> > I have been setup next configuration
> >
> > $TC qdisc add dev $DEVB root handle 1: htb default 30
> >
> > $TC class add dev $DEVB parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
> > burst 15k $TC class add dev $DEVB parent 1:1 classid 1:10 htb rate 1mbit
> > ceil 1mbit burst 15k $TC class add dev $DEVB parent 1:1 classid 1:30 htb
> > rate 2mbit ceil 100mbit burst 15k
> >
> > $TC qdisc add dev $DEVB parent 1:10 sfq perturb 10
> > $TC qdisc add dev $DEVB parent 1:30 sfq perturb 10
> >
> > $iptables -A OUTPUT -t mangle -p tcp -d 192.168.15.129 -j MARK --set-mark
> > 10
> > $tc filter add dev $DEVB protocol ip parent 1:0 prio 1 handle 10 fw
> > classid 1:10
> >
> > and all works fine, only 1 mbit goes to 192.168.15.129, but if I do
> >
> > $iptables -A OUTPUT -t mangle -p tcp -s 0/0 --sport 80 -d 192.168.15.129
> > -j MARK --set-mark 10
> > $tc filter add dev $DEVB protocol ip parent 1:0 prio
> > 1 handle 10 fw classid 1:10
> >
> > HTTP to 192.168.15.129 goes full 100 Mbit .
> Can you check the iptables counters so you are sure that the packets get
> marked? Maybe a tcpdump can give you more information.
Thanks . Problem solved. Popular mp3 server use pot 8001 and users bypass my rules.
>
> Stef
>
> --
>
> stef.coene@docum.org
> "Using Linux as bandwidth manager"
> http://www.docum.org/
> #lartc @ irc.oftc.net
--
PGP key : http://pgp.dtype.org:11371/pks/lookup?op=get&search=0x0BE90515
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-11-01 11:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 9:50 [LARTC] fw mark torouble Alexey Sheshka
2002-11-01 10:54 ` Stef Coene
2002-11-01 11:23 ` Alexey Sheshka [this message]
2002-11-01 11:46 ` Ethy H. Brito
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-103614987724013@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 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.