All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dan" <dan@34q.eu>
To: lartc@vger.kernel.org
Subject: [LARTC] tc / MARK question
Date: Fri, 06 Apr 2007 14:11:52 +0000	[thread overview]
Message-ID: <000301c77855$8642b360$92c81a20$@eu> (raw)

Hi,

I have a router, running iptables & tc, with 2 interfaces (eth0 & eth1).

I classify http traffic in iptables (prerouting mangle) coming in on eth0
and going out on eth1 with MARK 0x1, and I also classify return http traffic
coming from eth1 -> eth0 with MARK 0x1 as well. I then ACCEPT them in the
filter/FORWARD chain based on --mark 0x1.

However, I want to shape this traffic, and limit based on the 0x1 MARK. I
want to limit traffic to 4MBit outgoing on eth1 (incoming http), and 4MBit
outgoing on eth0 (return http), *independently*, even though they use the
same MARK.

If I use HTB, assigned to egress eth0 and another assigned to eth1, and
classify packets based on the MARK 0x1 (from above this is two tcp streams
in different connections under the same mark), does tc:

a) Treat the interfaces separately, giving me 4MBit either way independently
b) Treat the interfaces as one (because one MARK is being used), and give me
4MBit total across both streams?

Thanks!

Dan


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2007-04-06 14:11 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='000301c77855$8642b360$92c81a20$@eu' \
    --to=dan@34q.eu \
    --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.