From: Barton Hodges <barton@gcmcomputers.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Marking returned MASQ'ed packets (ingress, TC, etc.)
Date: Tue, 12 Jun 2001 22:37:19 +0000 [thread overview]
Message-ID: <marc-lartc-99238552718946@msgid-missing> (raw)
Hi Folks,
I'm using a 2.4.x kernel and TC from the iproute2 package
so that I can limit traffic through my gateway. I'm using this
to mark packets when they leave the LAN:
/sbin/ipchains -A forward -j MASQ -i eth0 -s 192.168.1.0/24 -d 0.0.0.0/0
-m 1
When the packets return, I need to have them marked again so that
the ingress filter will limit the bandwidth in the opposite direction.
The only way I have found to do this, is to mark EVERY packet like this:
/sbin/ipchains -A input -i eth0 -s 0.0.0.0/0 -d 12.10.109.52/32 -m 1
This works, but what I would really like to do, is mark the
192.168.1.0/24 packets instead (after they have been "un-masq'ed",
so that I can limit bandwidth on each interface in the gateway box.
Is this possible?
Thanks,
Barton
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next reply other threads:[~2001-06-12 22:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-12 22:37 Barton Hodges [this message]
2001-06-12 23:39 ` [LARTC] Marking returned MASQ'ed packets (ingress, TC, etc.) Barton Hodges
2001-06-13 11:43 ` Wingtung.Leung
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-99238552718946@msgid-missing \
--to=barton@gcmcomputers.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox