From: "Wingtung.Leung" <s965817@uia.ua.ac.be>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Marking returned MASQ'ed packets (ingress, TC, etc.)
Date: Wed, 13 Jun 2001 11:43:00 +0000 [thread overview]
Message-ID: <marc-lartc-99243266521405@msgid-missing> (raw)
In-Reply-To: <marc-lartc-99238552718946@msgid-missing>
On Tue, 12 Jun 2001, Barton Hodges wrote:
(Your ASCII drawing was rather screwed up, maybe too wide?)
> I can limit the downstream with this:
>
> tc qdisc add dev eth0 handle ffff:0 ingress
>
> tc filter add dev eth0 parent ffff:0 protocol ip prio 5 handle 1 fw \
> police rate 128kbit burst 128kbit mtu 1500 drop
>
>
> What I think I need is a separate filter for eth1 and eth2 that looks
> for different marks (handles?) Therefore, I need to mark packets
> coming through eth0 to eth1 with a 0x1 and from eth0 to eth2 with a 0x2
> and filter accordingly (I think).
I'm not sure I understand what you want, but I assume you want to limit
the downstream from internet to the two internal masqu'ed subnets. With
two extra conditions:
1 - internal traffic has priority (from subnet to subnet)
2 - internet downstream is equally divided between the subnets
First of all, I don't know how condition 2 can be met. I hope someone else
can correct me.
For the rest, I propose the following setup:
1 - create for each internal interface a low and a high priority class
with low rates (unbounded)
2 - don't mark incoming packets from the external interface, but use the
u32 filter and match with the source address
3 - if the packet comes from a internal subnet, redirect it to the hi-prio
class, otherwise send it to the low-prio class
This might not be ideal, just an idea.
--
GnuPG public key: http://win-www.uia.ac.be/u/s965817/pub.key
fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5
Please edit the quoted text.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
prev parent reply other threads:[~2001-06-13 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-12 22:37 [LARTC] Marking returned MASQ'ed packets (ingress, TC, etc.) Barton Hodges
2001-06-12 23:39 ` Barton Hodges
2001-06-13 11:43 ` Wingtung.Leung [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-99243266521405@msgid-missing \
--to=s965817@uia.ua.ac.be \
--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.