Update comment
This commit is contained in:
parent
ae46d8a8e6
commit
68e7eb4ed7
1 changed files with 4 additions and 5 deletions
|
|
@ -58,10 +58,8 @@ is_local_ip() {
|
||||||
report_to_abuseipdb() {
|
report_to_abuseipdb() {
|
||||||
local ip="$1" categories="$2" proto="$3" spt="$4" dpt="$5" ttl="$6" len="$7" tos="$8" warsaw_time="$9"
|
local ip="$1" categories="$2" proto="$3" spt="$4" dpt="$5" ttl="$6" len="$7" tos="$8" warsaw_time="$9"
|
||||||
|
|
||||||
local comment="IP: $ip
|
local comment="The IP address was blocked by UFW ($proto on port $dpt).
|
||||||
Protocol: $proto
|
Source port: $spt"
|
||||||
Source port: $spt
|
|
||||||
Destination port: $dpt"
|
|
||||||
|
|
||||||
[[ -n "$ttl" ]] && comment+="
|
[[ -n "$ttl" ]] && comment+="
|
||||||
TTL: $ttl"
|
TTL: $ttl"
|
||||||
|
|
@ -75,7 +73,8 @@ TOS: $tos"
|
||||||
comment+="
|
comment+="
|
||||||
Timestamp: $warsaw_time [Europe/Warsaw]
|
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
|
local response
|
||||||
response=$(curl -s -X POST "https://api.abuseipdb.com/api/v2/report" \
|
response=$(curl -s -X POST "https://api.abuseipdb.com/api/v2/report" \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue