How to prevent Slowloris with iptables on CentOS

following this command line as root access

iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I INPUT -m state --state INVALID -j DROP

iptables -I INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 20 -j DROP
/etc/init.d/iptables save

Was this answer helpful?

 Print this Article

Also Read

How to Extend LVM Partition on CentOS

Caution: VMware recommends having a complete backup of the virtual machine prior making these...

How to Secure /tmp on CentOS แบบ image files

cd / dd if=/dev/zero of=tmpfile bs=1024 count=2048576 mkfs.ext4 -j /tmpfile mount -o...

How to increase Set max connection On Centos 6.x

for centos 6.x it is changed to the following codes : To print current limit type:# sysctl...

Forgot Root Password "Give root password for maintenance"

To reset your root password: 1. When the GRUB loader shows during boot press the spare bar to...

Powered by WHMCompleteSolution