diff --git a/reporter.sh b/reporter.sh index 8d143df..f6eb8a5 100644 --- a/reporter.sh +++ b/reporter.sh @@ -58,10 +58,8 @@ is_local_ip() { report_to_abuseipdb() { local ip="$1" categories="$2" proto="$3" spt="$4" dpt="$5" ttl="$6" len="$7" tos="$8" warsaw_time="$9" - local comment="IP: $ip -Protocol: $proto -Source port: $spt -Destination port: $dpt" +local comment="The IP address was blocked by UFW ($proto on port $dpt). +Source port: $spt" [[ -n "$ttl" ]] && comment+=" TTL: $ttl" @@ -75,7 +73,8 @@ TOS: $tos" comment+=" Timestamp: $warsaw_time [Europe/Warsaw] -The IP address was blocked by the Uncomplicated Firewall (UFW) due to suspicious activity. Report generated by: https://github.com/sefinek24/UFW-AbuseIPDB-Reporter" +This report (for IP: $ip) was generated by: +https://github.com/sefinek24/UFW-AbuseIPDB-Reporter" local response response=$(curl -s -X POST "https://api.abuseipdb.com/api/v2/report" \