Skip to contentSkip to conversation

How to limit one single tcp connection ?

LARTC [email protected] 3 participants 3 messages May 9, 2003

lore
Share & tools
lore
#0 lore raw

Dear folks,
I would like to limit one single tcp connection in my network to 16Kbit only, but if they generate more tcp streams, let say 10 more tcp connection, they should not more than 100Kbit as the total bandwidth delegated for this network.

Please let me know how to do this ?

Regards,
Rio Martin.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Hello

There is a patch for iptables that implements max connections. See iptables patch-o-matic

Nuno Fernandes

Quoted 19 lines · On Fri, 2003-05-09 at 05:29, [email protected] wrote:

Dear folks,
I would like to limit one single tcp connection in my network to 16Kbit only, but if they generate more tcp streams, let say 10 more tcp connection, they should not more than 100Kbit as the total bandwidth delegated for this network.

Please let me know how to do this ?

Regards,
Rio Martin.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 1 line
Nuno Miguel Pais Fernandes <[email protected]>
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Friday 09 May 2003 06:29, [email protected] wrote:

Dear folks,
I would like to limit one single tcp connection in my network to 16Kbit only, but if they generate more tcp streams, let say 10 more tcp connection, they should not more than 100Kbit as the total bandwidth delegated for this network.

Please let me know how to do this ?

You can mark the packets with a u32 filter and use a policer in that filter to limit the packets. More info about policers can be found in the lartc howto.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/