Skip to contentSkip to conversation

Can I limit the number of tcp connections ?

DISCUSSION Mark Jackson 1 participant 1 message Apr 13, 2010

lore
Share & tools
lore
#0 lore raw

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