fix
This commit is contained in:
parent
cb284b28b8
commit
4d33f5013e
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-accounts DDOS Attack "
|
||||
echo $ATTACK
|
||||
@ -8,7 +9,7 @@ CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
echo "$ATTACK $1"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-instance DDOS Attack "
|
||||
echo $ATTACK
|
||||
@ -8,7 +9,7 @@ CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
echo "$ATTACK $1"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-search DDOS Attack "
|
||||
echo $ATTACK
|
||||
@ -8,7 +9,7 @@ CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 10 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
else
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-timeline-home DDOS Attack "
|
||||
echo $ATTACK
|
||||
@ -8,7 +9,7 @@ CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
echo "$ATTACK $1"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-timeline-public DDOS Attack "
|
||||
echo $ATTACK
|
||||
@ -8,7 +9,7 @@ CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
echo "$ATTACK $1"
|
||||
|
@ -5,7 +5,7 @@ ATTACK="module-lightning DDOS Attack "
|
||||
echo $ATTACK
|
||||
LN_SPAM=$(grep $2 $ACCESS | grep "lnurlp/verita84" | wc -l)
|
||||
if [[ "$LN_SPAM" -gt 5 ]]; then
|
||||
bash $FIREWALLipBlockParser "$1"
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK $1"
|
||||
redis-cli SADD tmp_block $1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user