fix
This commit is contained in:
parent
5f726cca18
commit
a1725b62d4
71
bots.txt
71
bots.txt
@ -5903,3 +5903,74 @@
|
||||
17.241.227.42
|
||||
47.128.123.68
|
||||
47.128.123.86
|
||||
47.128.29.224
|
||||
47.128.57.186
|
||||
17.22.237.100
|
||||
17.22.237.165
|
||||
17.22.237.91
|
||||
17.22.245.182
|
||||
47.128.112.253
|
||||
47.128.99.69
|
||||
51.222.253.18
|
||||
52.167.144.137
|
||||
47.128.37.86
|
||||
47.128.40.85
|
||||
47.128.125.222
|
||||
47.128.57.247
|
||||
17.241.227.218
|
||||
3.81.33.229
|
||||
47.128.40.249
|
||||
17.22.237.224
|
||||
17.22.245.251
|
||||
17.22.253.70
|
||||
2.59.157.106
|
||||
47.128.39.232
|
||||
47.128.61.133
|
||||
47.128.25.118
|
||||
47.128.56.9
|
||||
47.128.126.38
|
||||
47.128.36.32
|
||||
74.80.208.56
|
||||
27.55.77.53
|
||||
74.80.208.92
|
||||
47.128.41.243
|
||||
47.128.47.213
|
||||
40.77.167.77
|
||||
47.128.127.143
|
||||
47.128.127.189
|
||||
47.128.27.127
|
||||
47.128.111.120
|
||||
173.252.127.3
|
||||
207.46.13.64
|
||||
47.128.124.254
|
||||
47.128.43.236
|
||||
47.128.32.224
|
||||
47.128.99.164
|
||||
47.128.125.136
|
||||
47.128.33.193
|
||||
47.128.118.205
|
||||
135.181.79.106
|
||||
152.207.247.32
|
||||
47.128.115.144
|
||||
47.128.125.68
|
||||
17.241.227.205
|
||||
152.207.243.32
|
||||
156.146.54.82
|
||||
17.246.19.187
|
||||
17.246.23.109
|
||||
47.128.121.29
|
||||
173.252.83.114
|
||||
20.55.223.230
|
||||
47.128.50.242
|
||||
47.128.31.61
|
||||
47.128.99.167
|
||||
47.128.50.143
|
||||
74.80.208.218
|
||||
47.128.114.79
|
||||
47.128.53.118
|
||||
47.128.19.28
|
||||
47.128.47.182
|
||||
47.128.49.67
|
||||
173.252.107.9
|
||||
47.128.98.59
|
||||
47.128.125.32
|
||||
|
14
firewall2.sh
14
firewall2.sh
@ -49,7 +49,6 @@ COUNTRY=(
|
||||
https://www.ipdeny.com/ipblocks/data/countries/cn.zone
|
||||
)
|
||||
|
||||
noscl setprivate 0fe0b7d521c1b599b12a3b1e72acc6f08d2011083f25379d0b90a506d044266f
|
||||
nft list table filter > $NFT_CACHE
|
||||
|
||||
blockCountry() {
|
||||
@ -116,8 +115,7 @@ pedo-search() {
|
||||
else
|
||||
IP=$(echo $PEDO_SEARCH | cut -d ' ' -f1)
|
||||
$NFT add rule ip filter input position 8 ip saddr $IP $NFT_DROP
|
||||
noscl setprivate 0fe0b7d521c1b599b12a3b1e72acc6f08d2011083f25379d0b90a506d044266f
|
||||
noscl publish --profile=33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 "$QUERY"
|
||||
message "$QUERY"
|
||||
|
||||
fi
|
||||
}
|
||||
@ -423,7 +421,9 @@ module-go(){
|
||||
if [[ "$GO_SPAM" -gt 5 ]];
|
||||
then
|
||||
$NFT add rule ip filter input position 8 ip saddr "$1" $NFT_DROP
|
||||
algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 "GoLang SPAM: $2 "
|
||||
echo $1 >> $TMP_BLOCK
|
||||
message "Go Spam Attack!"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -432,7 +432,9 @@ module-wordpress(){
|
||||
if [[ "$WP_SPAM" -gt 2 ]];
|
||||
then
|
||||
$NFT add rule ip filter position 8 input ip saddr "$1" $NFT_DROP
|
||||
algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 "Wordpress SPAM: $2 "
|
||||
echo $1 >> $TMP_BLOCK
|
||||
message "Wordpress Attack!"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -441,10 +443,15 @@ module-lightning(){
|
||||
if [[ "$LN_SPAM" -gt 5 ]];
|
||||
then
|
||||
$NFT add rule ip filter input position 8 ip saddr "$1" $NFT_DROP
|
||||
message "Lightning Spam Attack!"
|
||||
echo $1 >> $TMP_BLOCK
|
||||
fi
|
||||
}
|
||||
|
||||
message(){
|
||||
algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 "$1"
|
||||
}
|
||||
|
||||
watch() {
|
||||
DATE="$(date +%d/%b/%Y:%H:%M -d '1 min ago' )"
|
||||
echo "Scanning $DATE"
|
||||
@ -467,6 +474,7 @@ watch() {
|
||||
logger "Blocking IP: $i with a count of: $COUNT"
|
||||
echo $i >> $TMP_BLOCK
|
||||
$NFT add rule ip filter input position 8 ip saddr $i $NFT_DROP
|
||||
message "Blocking IP: $i with a count of: $COUNT"
|
||||
else
|
||||
echo
|
||||
echo "Skipping Duplicate IP"
|
||||
|
Loading…
Reference in New Issue
Block a user