iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 60 –hitcount 5 -j DROP
This will allow only 5 connection simultanously from per IP.
This can also be to stop ddos attack on webserver.
iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 60 –hitcount 5 -j DROP
This will allow only 5 connection simultanously from per IP.
This can also be to stop ddos attack on webserver.