Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
Last active January 3, 2016 16:29
Show Gist options
  • Save opnchaudhary/8489431 to your computer and use it in GitHub Desktop.
Save opnchaudhary/8489431 to your computer and use it in GitHub Desktop.
Installing mod_evasive in fedora/centos to prevent DOS attacks yum install httpd-devel wget wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz tar -xzf mod_evasive_1.10.1.tar.gz cd mod_evasive apxs -cia mod_evasive20.c
#/etc/httpd/conf.d/mod_evavsive.conf
LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 3
DOSSiteCount 100
DOSPageInterval 3
DOSSiteInterval 5
DOSBlockingPeriod 300
DOSLogDir "/var/log/httpd/modevasive/"
DOSEmailNotify [email protected]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment