forked from jzdziarski/mod_evasive
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi,
I'm trying to implement mod_evasive in a load balanced environment where we use X-Forwared-For to store the actual remote IP. I'm running into a problem where it ends up blocking the proxy IP rather than the actual remote IP.
I found this thread which seems relevant:
#14
The gist is that you need to set both of these:
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy [ip range of load balancers]
My setup is this: mod_remoteip is installed and loaded, as is mod_evasive.
Inside the virtual host, the following is set:
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 172.24.0.0/16
LoadModule evasive_module modules/mod_evasive24.so
DOSEnabled true
DOSHashTableSize 3097
DOSPageCount 1
DOSSiteCount 2
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSEmailNotify my@email.address
However, I'm still receiving an email indicating that the load balancer IP is being blocked:
To: my@email.address
Subject: HTTP BLACKLIST 172.24.15.211
mod_evasive HTTP Blacklisted 172.24.15.211
I'm looking for some guidance on what the problem might be. Thank you!
Metadata
Metadata
Assignees
Labels
No labels