Just use the following command:
iptables -A INPUT -p tcp --syn --dport 22 -m connlimit --connlimit-above 5 -j REJECT
In this example our connections are limited to 5.
Nice site, nice and easy on the eyes and great content too.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 19,278 other subscribers