Update
This commit is contained in:
1 parent
2189dffd5c
commit
5f2b5c7997
3 files changed
+6
-11
No files matched your search
+2
-5
@@ -15,7 +15,7 @@ exports.MAIN = {
|
|||||||
IP_REPORT_COOLDOWN: 12 * 60 * 60 * 1000, // Minimum time between reports of the same IP. Must be >= 15 minutes. Do not set values like 1 hour, as it wouldn't make sense due to rate limits.
|
IP_REPORT_COOLDOWN: 12 * 60 * 60 * 1000, // Minimum time between reports of the same IP. Must be >= 15 minutes. Do not set values like 1 hour, as it wouldn't make sense due to rate limits.
|
||||||
|
|
||||||
/* --------------------------- Automatic Updates --------------------------- */
|
/* --------------------------- Automatic Updates --------------------------- */
|
||||||
AUTO_UPDATE_ENABLED: true, // Automatic updates: true to enable auto-update via 'git pull', false to disable.
|
AUTO_UPDATE_ENABLED: false, // Automatic updates: true to enable auto-update via 'git pull', false to disable.
|
||||||
AUTO_UPDATE_SCHEDULE: '15,17,18,20 * * *', // Cron schedule for automatic script updates. Default: every day at 15:00, 17:00, 18:00, 20:00
|
AUTO_UPDATE_SCHEDULE: '15,17,18,20 * * *', // Cron schedule for automatic script updates. Default: every day at 15:00, 17:00, 18:00, 20:00
|
||||||
|
|
||||||
/* --------------------------- Discord Webhooks --------------------------- */
|
/* --------------------------- Discord Webhooks --------------------------- */
|
||||||
@@ -44,7 +44,6 @@ https://github.com/sefinek/UFW-AbuseIPDB-Reporter`; // Please don't delete this
|
|||||||
|
|
||||||
// See: https://www.abuseipdb.com/categories
|
// See: https://www.abuseipdb.com/categories
|
||||||
const categories = {
|
const categories = {
|
||||||
TCP: {
|
|
||||||
22: '14,22,18', // Port Scan | SSH | Brute-Force
|
22: '14,22,18', // Port Scan | SSH | Brute-Force
|
||||||
80: '14,21', // Port Scan | Web App Attack
|
80: '14,21', // Port Scan | Web App Attack
|
||||||
443: '14,21', // Port Scan | Web App Attack
|
443: '14,21', // Port Scan | Web App Attack
|
||||||
@@ -60,8 +59,6 @@ const categories = {
|
|||||||
6668: '14,8', // Port Scan | Fraud VoIP
|
6668: '14,8', // Port Scan | Fraud VoIP
|
||||||
6669: '14,8', // Port Scan | Fraud VoIP
|
6669: '14,8', // Port Scan | Fraud VoIP
|
||||||
9999: '14,6', // Port Scan | Ping of Death
|
9999: '14,6', // Port Scan | Ping of Death
|
||||||
},
|
|
||||||
UDP: {},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.DETERMINE_CATEGORIES = ({ proto, dpt }) => categories[proto]?.[dpt] || '14'; // Default: Port Scan
|
exports.DETERMINE_CATEGORIES = ({ dpt }) => categories[dpt] || '14'; // Default: Port Scan
|
||||||
@@ -148,6 +148,9 @@ const processLogLine = async (line, test = false) => {
|
|||||||
await require('./scripts/services/version.js');
|
await require('./scripts/services/version.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fetch IPs
|
||||||
|
await refreshServerIPs();
|
||||||
|
|
||||||
// Load cache
|
// Load cache
|
||||||
await loadReportedIPs();
|
await loadReportedIPs();
|
||||||
|
|
||||||
@@ -158,11 +161,6 @@ const processLogLine = async (line, test = false) => {
|
|||||||
await sendBulkReport();
|
await sendBulkReport();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch IPs
|
|
||||||
logger.log('Trying to fetch your IPv4 and IPv6 address from api.sefinek.net...');
|
|
||||||
await refreshServerIPs();
|
|
||||||
logger.log(`Fetched ${getServerIPs()?.length} of your IP addresses. If any of them accidentally appear in the UFW logs, they will be ignored.`, 1);
|
|
||||||
|
|
||||||
// Check UFW_LOG_FILE
|
// Check UFW_LOG_FILE
|
||||||
if (!fs.existsSync(UFW_LOG_FILE)) {
|
if (!fs.existsSync(UFW_LOG_FILE)) {
|
||||||
logger.log(`Log file ${UFW_LOG_FILE} does not exist`, 3);
|
logger.log(`Log file ${UFW_LOG_FILE} does not exist`, 3);
|
||||||
|
|||||||
+1
-1
Submodule scripts updated: 245f3a43b2...3a8c3e2dfd.
Reference in new issue
Block a user