Dear Parallels Support,
I hereby want to inform if Plesk Firewall can be setup to work together with Apache mod_evasive.
I have a default CentOS6 + Plesk server and installed the Plesk firewall module. I have installed mod_evasive via YUM (EPEL repo).
The configuration of mod_evasive is as following:
I have used the included test.pl script on a different server to simulate a DDoS attack.
After a sertain amount of hits a 403 is returned, suggesting a mod_evasive block via iptables, but it lasts a second and the next 10+ hits are accepted again.
I have read in an internet post that the Plesk firewall resets iptables, so that mod_evasive rules are removed.
Is there a default configuration method to use Plesk firewall with mod_evasive? Or is there CLI to configure the firewall so that it can be setup via DOSSystemCommand?
Best Regards,
Jan
I hereby want to inform if Plesk Firewall can be setup to work together with Apache mod_evasive.
I have a default CentOS6 + Plesk server and installed the Plesk firewall module. I have installed mod_evasive via YUM (EPEL repo).
The configuration of mod_evasive is as following:
Code:
DOSHashTableSize 10240
DOSPageCount 10
DOSSiteCount 100
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 5
DOSEmailNotify x@x
# If this value is set, the system command specified will be executed
# whenever an IP address becomes blacklisted. This is designed to enable
# system calls to ip filter or other tools. A locking mechanism using /tmp
# prevents continuous system calls. Use %s to denote the IP address of the
# blacklisted IP.
#DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"
DOSLogDir "/log/mod_evasive"
I have used the included test.pl script on a different server to simulate a DDoS attack.
After a sertain amount of hits a 403 is returned, suggesting a mod_evasive block via iptables, but it lasts a second and the next 10+ hits are accepted again.
I have read in an internet post that the Plesk firewall resets iptables, so that mod_evasive rules are removed.
Is there a default configuration method to use Plesk firewall with mod_evasive? Or is there CLI to configure the firewall so that it can be setup via DOSSystemCommand?
Best Regards,
Jan
Last edited: