fix
This commit is contained in:
parent
945e1bbd40
commit
cecc47c718
@ -4,7 +4,7 @@ MY_IP=($(redis-cli --raw SMEMBERS my_ip))
|
|||||||
ATTACK_THRESHOLD="50"
|
ATTACK_THRESHOLD="50"
|
||||||
NGINX_ACCESS="/tmp/access.log"
|
NGINX_ACCESS="/tmp/access.log"
|
||||||
ACCESS="/tmp/minute.log"
|
ACCESS="/tmp/minute.log"
|
||||||
HTTP_LIMIT="200"
|
HTTP_LIMIT="150"
|
||||||
RATE_LIMITED_HTTP="30"
|
RATE_LIMITED_HTTP="30"
|
||||||
MODULES="/opt/firewall/modules"
|
MODULES="/opt/firewall/modules"
|
||||||
TMP_BLOCK_TIMEOUT="20"
|
TMP_BLOCK_TIMEOUT="20"
|
||||||
|
@ -7,4 +7,5 @@ if [[ "$PHP_SPAM" -gt 10 ]]; then
|
|||||||
bash $FIREWALL ipBlockParser "$1"
|
bash $FIREWALL ipBlockParser "$1"
|
||||||
bash $FIREWALL message "$ATTACK-$1"
|
bash $FIREWALL message "$ATTACK-$1"
|
||||||
redis-cli SADD tmp_block $1
|
redis-cli SADD tmp_block $1
|
||||||
|
cp -f $ACCESS /tmp/debug-$ATTACK-$1.txt
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user