How can I limit the number of open AF_INET sockets?

Posted by Stefano Palazzo on Ask Ubuntu See other posts from Ask Ubuntu or by Stefano Palazzo
Published on 2011-06-23T06:16:24Z Indexed on 2011/06/23 8:29 UTC
Read the original article Hit count: 269

Filed under:
|
|

Is there a way to limit the number of concurretly open AF_INET sockets (only)? If so, how do I do it, and how will the networking behave if I'm above the limit?

For background: My cheap commodity router is a bit eager to detect 'syn flooding'. When it does, it crashes (and doesn't automatically restart itself). I'm thinking limiting concurrent connections to around 1000 should keep it from bickering.

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about kernel