Skip to contentSkip to conversation

mark connections based a quote

DISCUSSION Gabor Csuri 1 participant 1 message Nov 14, 2002

lore
Share & tools
lore
#0 lore raw

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.