Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to limit connections to my server to one connection per second on every port in range 10000:65535

I started using this rule:

iptables -A INPUT -p tcp --syn --dport 10000:65535 \
         -m connlimit --connlimit-above 1          \
         -j REJECT --reject-with tcp-reset

Unfortunately it blocks 1 connection to whole range of ports, not to every single one.

Is there any other way then simple bash loop to limit one connection per second to every port in this range?

share|improve this question
Why would you want to do this? It seems very unnecessary. – EEAA Feb 3 '13 at 2:58
1 – Michael Hampton Feb 3 '13 at 3:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.