ABHIONLINUX
Site useful for linux administration and web hosting

2010/06/09

limit number of connection to a server using IPTABLES

We can limit number of connections to the server using the command below.

iptables -I INPUT -p tcp --syn --dport 22 -m connlimit --conlimit-above 2 -j REJECT

service iptables save

service iptables restart

No comments:

Post a Comment