ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label mit number of connections. Show all posts
Showing posts with label mit number of connections. Show all posts

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