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.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.