* mark connections based a quote
@ 2002-11-14 22:01 Gabor Csuri
2002-11-15 12:43 ` John Leach
0 siblings, 1 reply; 5+ messages in thread
From: Gabor Csuri @ 2002-11-14 22:01 UTC (permalink / raw)
To: netfilter
Hi All,
I need to restrict some connections into a bandwidth on my local network.
The long downloads (and uploads) are very bad for our 800k/128k bandwidth.
I thougth I would restrict the long downloads into a lower bandwidth, but I
don't know how can I mark the long downloads.
Can I mark the packets which are a part of a long connection maybe like
this:
iptables -m cquote --cquote 2000000 -j MARK --set-mark 1
means it marks packet within a connection which are over 2MB.
How can I do this?
Thanks in advice, Gabor Csuri.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <FD8F124A387AD6119F7900A0D218B321487EAB@hslex01.hsl-brabantzuid.nl>]
* RE: mark connections based a quote
[not found] <FD8F124A387AD6119F7900A0D218B321487EAB@hslex01.hsl-brabantzuid.nl>
@ 2002-11-15 13:43 ` Rob Sterenborg
2002-11-15 14:24 ` Gabor Csuri
0 siblings, 1 reply; 5+ messages in thread
From: Rob Sterenborg @ 2002-11-15 13:43 UTC (permalink / raw)
To: 'Gabor Csuri', netfilter
> I need to restrict some connections into a bandwidth on my
> local network.
> The long downloads (and uploads) are very bad for our
> 800k/128k bandwidth.
> I thougth I would restrict the long downloads into a lower
> bandwidth, but I
> don't know how can I mark the long downloads.
> Can I mark the packets which are a part of a long connection
I don't think netfilter/iptables can do what you want, but CBQ or HTB
together with iproute2 can.
In case of HTB (which I think is easier to configure), check out :
http:luxik.cdi.cz/~devik/qos/htb/
Specifically, for bursts (short downloads at high speed) :
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#burst
You can allow higher bandwidth for short downloads, while larger will be
throttled.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: mark connections based a quote
2002-11-15 13:43 ` Rob Sterenborg
@ 2002-11-15 14:24 ` Gabor Csuri
0 siblings, 0 replies; 5+ messages in thread
From: Gabor Csuri @ 2002-11-15 14:24 UTC (permalink / raw)
To: netfilter
Hi All,
Thank you the answers, I got the solution in private mail.
There is an iptables patch exactly do what I wanted.
Connbytes patch is located at http://luxik.cdi.cz/~devik/connbytes/.
regards, Gabor.
> -----Original Message-----
> From: Rob Sterenborg [mailto:rsterenborg@xs4all.nl]
> Sent: Friday, November 15, 2002 2:44 PM
> To: 'Gabor Csuri'; netfilter@lists.netfilter.org
> Subject: RE: mark connections based a quote
>
>
> > I need to restrict some connections into a bandwidth on my
> > local network.
> > The long downloads (and uploads) are very bad for our
> > 800k/128k bandwidth.
> > I thougth I would restrict the long downloads into a lower
> > bandwidth, but I
> > don't know how can I mark the long downloads.
> > Can I mark the packets which are a part of a long connection
>
> I don't think netfilter/iptables can do what you want, but CBQ or HTB
> together with iproute2 can.
> In case of HTB (which I think is easier to configure), check out :
> http:luxik.cdi.cz/~devik/qos/htb/
>
> Specifically, for bursts (short downloads at high speed) :
> http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#burst
> You can allow higher bandwidth for short downloads, while larger will be
> throttled.
>
>
> Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* mark connections based a quote
@ 2002-11-14 21:40 Gabor Csuri
0 siblings, 0 replies; 5+ messages in thread
From: Gabor Csuri @ 2002-11-14 21:40 UTC (permalink / raw)
To: netfilter
Hi All,
I need to restrict some connections into a bandwidth on my local network.
The long downloads (and uploads) are very bad for our 800k/128k bandwidth.
I thougth I would restrict the long downloads into a lower bandwidth, but I
don't know how can I mark the long downloads.
Can I mark the packets which are a part of a long connection maybe like
this:
iptables -m cquote --cquote 2000000 -j MARK --set-mark 1
means it marks packet within a connection which are over 2MB.
How can I do this?
Thanks in advice, Gabor Csuri.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-15 14:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-14 22:01 mark connections based a quote Gabor Csuri
2002-11-15 12:43 ` John Leach
[not found] <FD8F124A387AD6119F7900A0D218B321487EAB@hslex01.hsl-brabantzuid.nl>
2002-11-15 13:43 ` Rob Sterenborg
2002-11-15 14:24 ` Gabor Csuri
-- strict thread matches above, loose matches on Subject: below --
2002-11-14 21:40 Gabor Csuri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox