This commit is contained in:
Your Name 2024-09-24 21:56:20 -06:00
parent cb284b28b8
commit 4d33f5013e
6 changed files with 11 additions and 6 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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