From 296fb335de05b401ec30906c2712cfda4be49423 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 27 Apr 2025 02:13:05 +0200 Subject: [PATCH] Update --- config.default.js | 16 ++++++++-------- scripts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config.default.js b/config.default.js index 7f92e9e..ce3c42e 100644 --- a/config.default.js +++ b/config.default.js @@ -10,26 +10,26 @@ exports.MAIN = { // Reporting ABUSEIPDB_API_KEY: '', // Secret API key for AbuseIPDB. - IP_REPORT_COOLDOWN: 12 * 60 * 60 * 1000, // Minimum time (12 hours) that must pass before reporting the same IP address again. + IP_REPORT_COOLDOWN: 12 * 60 * 60 * 1000, // Minimum time (12 hours in this example) that must pass before the same IP address can be reported again. Do not set values like 1 hour, as it wouldn't make sense due to rate limits. // Automatic Updates AUTO_UPDATE_ENABLED: false, // Should the script automatically update to the latest version using 'git pull'? If enabled, monitor the script periodically — incompatibilities may occasionally occur with the config file. AUTO_UPDATE_SCHEDULE: '0 18 * * *', // CRON: Schedule for automatic script updates. Default: every day at 18:00 // Discord Webhooks - DISCORD_WEBHOOKS_ENABLED: false, // Should the script send webhooks? They will include error reports, daily summaries, and other related information. + DISCORD_WEBHOOKS_ENABLED: false, // Should the script send webhooks? These will include error reports, daily summaries, and other related information. DISCORD_WEBHOOKS_URL: '', + DISCORD_WEBHOOK_USERNAME: 'SERVER_ID', // The name displayed as the message author on Discord. If you don't want to set it, leave the value as null. Providing SERVER_ID as a string will display this.MAIN.SERVER_ID. }; - // Generates a report submission. const serverId = this.MAIN.SERVER_ID ? `on ${this.MAIN.SERVER_ID} ` : ''; exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) => - `Blocked by UFW ${serverId}[${dpt || 'N/A'}/${proto?.toLowerCase() || 'N/A'}] -Source port: ${spt || 'N/A'} -TTL: ${ttl || 'N/A'} -Packet length: ${len || 'N/A'} -TOS: ${tos || 'N/A'} + `Blocked by UFW ${serverId}[${dpt}/${proto?.toLowerCase()}] +Source port: ${spt} +TTL: ${ttl} +Packet length: ${len} +TOS: ${tos} This report was generated by: https://github.com/sefinek/UFW-AbuseIPDB-Reporter`; // Please, don't delete this URL. I would be very grateful! Thank you. 💙 diff --git a/scripts b/scripts index f211477..4847443 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit f211477c373aecb3f69067949b32b5e2fff151c7 +Subproject commit 4847443f2a97f6100acde6b296298f59058cf711