Can I limit the number of tcp connections ?

Previous thread: [at91] Save power by disabling the processor clock when CPU is idle by Anders Larsen on Tuesday, April 13, 2010 - 4:05 am. (3 messages)

Next thread: [PATCH] input: handle bad parity PS/2 packets in mouse drivers better by Damjan Jovanovic on Tuesday, April 13, 2010 - 4:29 am. (5 messages)
From: Mark Jackson
Date: Tuesday, April 13, 2010 - 4:16 am

Is there any way to limit the # tcp connections under Linux ?

I've tried ...

echo 8 > /proc/sys/net/core/somaxconn

... but I can still open 10 ssh sessions, as well as a web server.

I know I could run iptables, but I was looking for a much lower level
solution (with a smaller resource footprint).

Any clues ?

Thanks
Mark

--

Previous thread: [at91] Save power by disabling the processor clock when CPU is idle by Anders Larsen on Tuesday, April 13, 2010 - 4:05 am. (3 messages)

Next thread: [PATCH] input: handle bad parity PS/2 packets in mouse drivers better by Damjan Jovanovic on Tuesday, April 13, 2010 - 4:29 am. (5 messages)