diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile index b74fafce4..c77c5f821 100644 --- a/security/crowdsec/Makefile +++ b/security/crowdsec/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= crowdsec -PLUGIN_VERSION= 1.0.1 +PLUGIN_VERSION= 1.0.2 PLUGIN_DEPENDS= crowdsec PLUGIN_COMMENT= Lightweight and collaborative security engine PLUGIN_MAINTAINER= marco@crowdsec.net diff --git a/security/crowdsec/pkg-descr b/security/crowdsec/pkg-descr index 53fc2bf43..846f7e8e8 100644 --- a/security/crowdsec/pkg-descr +++ b/security/crowdsec/pkg-descr @@ -8,6 +8,12 @@ WWW: https://crowdsec.net/ Plugin Changelog ================ +1.0.2 + +* updated cron job (reload only when there are updates), added small random delay +* limit log collection to latest.log (requires 22.7+) +* some javascript lint + 1.0.1 * fixed live logs diff --git a/security/crowdsec/src/etc/cron.d/oscrowdsec.cron b/security/crowdsec/src/etc/cron.d/oscrowdsec.cron index 2ec072c40..635b78577 100644 --- a/security/crowdsec/src/etc/cron.d/oscrowdsec.cron +++ b/security/crowdsec/src/etc/cron.d/oscrowdsec.cron @@ -6,4 +6,4 @@ SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin #minute hour mday month wday who command -0 1,13 * * * root /usr/local/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh +0 1 * * * root (sleep $(jot -r 1 1 60); /usr/local/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh) diff --git a/security/crowdsec/src/etc/crowdsec/acquis.d/opnsense.yaml b/security/crowdsec/src/etc/crowdsec/acquis.d/opnsense.yaml index 905be2256..ab73fcd90 100644 --- a/security/crowdsec/src/etc/crowdsec/acquis.d/opnsense.yaml +++ b/security/crowdsec/src/etc/crowdsec/acquis.d/opnsense.yaml @@ -7,9 +7,12 @@ # filenames: - # ssh - - /var/log/audit/*.log - # web admin - - /var/log/lighttpd/*.log + # DO NOT EDIT - to add new datasources (log locations), + # create new files in /usr/local/etc/crowdsec/acquis.d/ + # + # collection: crowdsecurity/sshd + - /var/log/audit/latest.log + # collection: crowdsecurity/opnsense-gui (web admin) + - /var/log/lighttpd/latest.log labels: type: syslog diff --git a/security/crowdsec/src/opnsense/mvc/app/models/OPNsense/CrowdSec/General.xml b/security/crowdsec/src/opnsense/mvc/app/models/OPNsense/CrowdSec/General.xml index dd124e045..c647de7f3 100644 --- a/security/crowdsec/src/opnsense/mvc/app/models/OPNsense/CrowdSec/General.xml +++ b/security/crowdsec/src/opnsense/mvc/app/models/OPNsense/CrowdSec/General.xml @@ -1,7 +1,7 @@ //OPNsense/crowdsec/general CrowdSec general configuration - 1.0.1 + 1.0.2 diff --git a/security/crowdsec/src/opnsense/mvc/app/views/OPNsense/CrowdSec/general.volt b/security/crowdsec/src/opnsense/mvc/app/views/OPNsense/CrowdSec/general.volt index 3a91e9ade..76decfbb4 100644 --- a/security/crowdsec/src/opnsense/mvc/app/views/OPNsense/CrowdSec/general.volt +++ b/security/crowdsec/src/opnsense/mvc/app/views/OPNsense/CrowdSec/general.volt @@ -1,7 +1,6 @@ {# SPDX-License-Identifier: MIT #} {# SPDX-FileCopyrightText: © 2021 CrowdSec #} -