Meldung an AbuseIPDB optimiert.
This commit is contained in:
@@ -238,6 +238,7 @@ report_to_abuseipdb() {
|
|||||||
local domain="$2"
|
local domain="$2"
|
||||||
local count="$3"
|
local count="$3"
|
||||||
local reason="${4:-rate-limit}"
|
local reason="${4:-rate-limit}"
|
||||||
|
local window="${5:-$RATE_LIMIT_WINDOW}"
|
||||||
|
|
||||||
if [[ "${ABUSEIPDB_ENABLED:-false}" != "true" ]]; then
|
if [[ "${ABUSEIPDB_ENABLED:-false}" != "true" ]]; then
|
||||||
return 0
|
return 0
|
||||||
@@ -251,9 +252,9 @@ report_to_abuseipdb() {
|
|||||||
# Kommentar für AbuseIPDB erstellen (englisch)
|
# Kommentar für AbuseIPDB erstellen (englisch)
|
||||||
local comment
|
local comment
|
||||||
if [[ "$reason" == "subdomain-flood" ]]; then
|
if [[ "$reason" == "subdomain-flood" ]]; then
|
||||||
comment="DNS flooding on our DNS server: ${count}x ${domain} (random subdomain attack). Permanently banned by AdGuard Shield."
|
comment="DNS flooding on our DNS server: ${count}x ${domain} in ${window}s (random subdomain attack). Banned by Adguard Shield 🔗 https://tnvs.de/as"
|
||||||
else
|
else
|
||||||
comment="DNS flooding on our DNS server: ${count}x ${domain}. Permanently banned by AdGuard Shield."
|
comment="DNS flooding on our DNS server: ${count}x ${domain} in ${window}s. Banned by Adguard Shield 🔗 https://tnvs.de/as"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local categories="${ABUSEIPDB_CATEGORIES:-4}"
|
local categories="${ABUSEIPDB_CATEGORIES:-4}"
|
||||||
@@ -456,7 +457,7 @@ EOF
|
|||||||
|
|
||||||
# AbuseIPDB Report (nur bei permanenter Sperre)
|
# AbuseIPDB Report (nur bei permanenter Sperre)
|
||||||
if [[ "$is_permanent" == "true" ]]; then
|
if [[ "$is_permanent" == "true" ]]; then
|
||||||
report_to_abuseipdb "$client_ip" "$domain" "$count" "$reason" &
|
report_to_abuseipdb "$client_ip" "$domain" "$count" "$reason" "$window" &
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,8 +176,8 @@ sudo systemctl restart adguard-shield
|
|||||||
|
|
||||||
Der Report an AbuseIPDB enthält (auf Englisch):
|
Der Report an AbuseIPDB enthält (auf Englisch):
|
||||||
|
|
||||||
- **Bei Rate-Limit:** `DNS flooding on our DNS server: 100x microsoft.com. Permanently banned by AdGuard Shield.`
|
- **Bei Rate-Limit:** `DNS flooding on our DNS server: 100x microsoft.com in 60s. Banned by Adguard Shield 🔗 https://tnvs.de/as`
|
||||||
- **Bei Subdomain-Flood:** `DNS flooding on our DNS server: 85x *.microsoft.com (random subdomain attack). Permanently banned by AdGuard Shield.`
|
- **Bei Subdomain-Flood:** `DNS flooding on our DNS server: 85x *.microsoft.com in 60s (random subdomain attack). Banned by Adguard Shield 🔗 https://tnvs.de/as`
|
||||||
|
|
||||||
Die Kategorie `4` (DDoS Attack) wird standardmäßig verwendet. Weitere Kategorien können kommagetrennt angegeben werden (z.B. `"4,15"`).
|
Die Kategorie `4` (DDoS Attack) wird standardmäßig verwendet. Weitere Kategorien können kommagetrennt angegeben werden (z.B. `"4,15"`).
|
||||||
#### Externe Blocklist einrichten
|
#### Externe Blocklist einrichten
|
||||||
|
|||||||
Reference in New Issue
Block a user