Update
This commit is contained in:
1 parent
218900466a
commit
296fb335de
2 files changed
+9
-9
No files matched your search
+8
-8
@@ -10,26 +10,26 @@ exports.MAIN = {
|
|||||||
|
|
||||||
// Reporting
|
// Reporting
|
||||||
ABUSEIPDB_API_KEY: '', // Secret API key for AbuseIPDB.
|
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
|
// 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_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
|
AUTO_UPDATE_SCHEDULE: '0 18 * * *', // CRON: Schedule for automatic script updates. Default: every day at 18:00
|
||||||
|
|
||||||
// Discord Webhooks
|
// 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_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.
|
// Generates a report submission.
|
||||||
const serverId = this.MAIN.SERVER_ID ? `on ${this.MAIN.SERVER_ID} ` : '';
|
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) =>
|
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'}]
|
`Blocked by UFW ${serverId}[${dpt}/${proto?.toLowerCase()}]
|
||||||
Source port: ${spt || 'N/A'}
|
Source port: ${spt}
|
||||||
TTL: ${ttl || 'N/A'}
|
TTL: ${ttl}
|
||||||
Packet length: ${len || 'N/A'}
|
Packet length: ${len}
|
||||||
TOS: ${tos || 'N/A'}
|
TOS: ${tos}
|
||||||
|
|
||||||
This report was generated by:
|
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. 💙
|
https://github.com/sefinek/UFW-AbuseIPDB-Reporter`; // Please, don't delete this URL. I would be very grateful! Thank you. 💙
|
||||||
|
|||||||
+1
-1
Submodule scripts updated: f211477c37...4847443f2a.
Reference in new issue
Block a user