From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Worm Mortensen worm@dkik.dk Date: Thu, 01 Mar 2001 22:01:59 +0000 Subject: [LARTC] Bandwidth limiting a MASQed network. Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
Hi,

> > Yes. But I guess you can use the firewall mark and let ipchain=
s (and
> > probably also netfilter in 2.4) mark masqgraded packets wi=
th some
> > specific value and then use filters to match this specific=
 mark. I have
> > not tried this myself, though.
>=20
> Ah :) I was hoping that might do the trick. I=B4m using ipchain=
s to set up ipmasq=20
> right now and I have absolutely no idea of how to mark them. Is the=
re anyone=20
> out there that could help me out?

I think you should use ipchains to set up masqgrading and add an "-m 4=
2" option to the line you do it with (i.e. "ipchains ... -m 42 - =
j MASQ) . Then you can probably use the u32 or the fwmark filter to match o=
n packets which has the firewall mark set to the value 42.


Christian