Update config.default.js
This commit is contained in:
1 parent
0b5c4203dc
commit
72f1430401
1 file changed
+4
-9
+4
-9
@@ -26,17 +26,12 @@ exports.MAIN = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Generates a report submission.
|
// Generates a report comment. Please do not remove the source link, I would greatly appreciate it! Thank you.
|
||||||
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}/${proto?.toLowerCase()}]
|
`UFW blocked traffic ${serverId}[${dpt}/${proto?.toLowerCase()}] | ` +
|
||||||
Source port: ${spt}
|
`SRC port: ${spt} | TTL: ${ttl} | LEN: ${len} | TOS: ${tos} | ` +
|
||||||
TTL: ${ttl}
|
'Reported by: github.com/sefinek/UFW-AbuseIPDB-Reporter';
|
||||||
Packet length: ${len}
|
|
||||||
TOS: ${tos}
|
|
||||||
|
|
||||||
This report was generated by:
|
|
||||||
https://github.com/sefinek/UFW-AbuseIPDB-Reporter`; // Please don't delete this URL, I'd be very grateful. Thank you! 💙
|
|
||||||
|
|
||||||
// Alternative version:
|
// Alternative version:
|
||||||
// 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) =>
|
||||||
|
|||||||
Reference in new issue
Block a user