From df24bc2427ce08669351e9094ae8eb9b0995aa13 Mon Sep 17 00:00:00 2001 From: "Patrick M. Hausen" Date: Thu, 28 Sep 2023 10:44:44 +0200 Subject: [PATCH] security/crowdsec - add option `retry_initial_connect` to bouncer configuration for more robust startup --- security/crowdsec/Makefile | 2 +- security/crowdsec/pkg-descr | 4 ++++ .../src/opnsense/scripts/OPNsense/CrowdSec/reconfigure.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile index ca8b22e79..621a91909 100644 --- a/security/crowdsec/Makefile +++ b/security/crowdsec/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= crowdsec -PLUGIN_VERSION= 1.0.6 +PLUGIN_VERSION= 1.0.7 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 8d635b67c..456dce455 100644 --- a/security/crowdsec/pkg-descr +++ b/security/crowdsec/pkg-descr @@ -8,6 +8,10 @@ WWW: https://crowdsec.net/ Plugin Changelog ================ +1.0.7 + +* Add option `retry_initial_connect` to bouncer configuration for more robust startup. The option was introduced in Crowdsec 1.5.4. + 1.0.6 * default acquis.d/opnsense.yaml to "poll_without_inotify=true" which is now required diff --git a/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/reconfigure.py b/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/reconfigure.py index 6f012249b..20c572439 100755 --- a/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/reconfigure.py +++ b/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/reconfigure.py @@ -69,6 +69,7 @@ def configure_bouncer(settings): config['log_dir'] = '/var/log/crowdsec' config['blacklists_ipv4'] = 'crowdsec_blacklists' config['blacklists_ipv6'] = 'crowdsec6_blacklists' + config['retry_initial_connect'] = True config['pf'] = {'anchor_name': ''} if not int(settings.get('lapi_manual_configuration', '0')):