security/crowdsec 1.0.1: fixed live logs (#3130)

This commit is contained in:
mmetc
2022-09-19 20:21:27 +02:00
committed by GitHub
parent 7ffcdd4789
commit 3811b1f843
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= crowdsec
PLUGIN_VERSION= 1.0
PLUGIN_VERSION= 1.0.1
PLUGIN_DEPENDS= crowdsec
PLUGIN_COMMENT= Lightweight and collaborative security engine
PLUGIN_MAINTAINER= marco@crowdsec.net
+4
View File
@@ -8,6 +8,10 @@ WWW: https://crowdsec.net/
Plugin Changelog
================
1.0.1
* fixed live logs
1.0
* first non-devel release
@@ -53,13 +53,12 @@ function crowdsec_firewall(Plugin $fw)
'ipprotocol' => 'inet',
'descr' => 'CrowdSec (IPv4)',
'from' => '$crowdsec_blacklists', # $ to reference an alias
'direction' => 'in',
'type' => 'block',
'log' => $rules_log_enabled,
'tag' => $rules_tag,
'label' => 'blocked by crowdsec',
'quick' => true
),
null
)
);
add_alias_if_not_exist('crowdsec6_blacklists', 'CrowdSec (IPv6)', 'IPv6');
@@ -70,13 +69,12 @@ function crowdsec_firewall(Plugin $fw)
'ipprotocol' => 'inet6',
'descr' => 'CrowdSec (IPv6)',
'from' => '$crowdsec6_blacklists', # $ to reference an alias
'direction' => 'in',
'type' => 'block',
'log' => $rules_log_enabled,
'tag' => $rules_tag,
'label' => 'blocked by crowdsec',
'quick' => true
),
null
)
);
}
@@ -43,7 +43,7 @@ class ServiceController extends ApiControllerBase
$backend = new Backend();
$response = $backend->configdRun("crowdsec crowdsec-status");
$status = "unkown";
$status = "unknown";
if (strpos($response, "not running") > 0) {
$status = "stopped";
} elseif (strpos($response, "is running") > 0) {
@@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/crowdsec/general</mount>
<description>CrowdSec general configuration</description>
<version>1.0</version>
<version>1.0.1</version>
<items>
<agent_enabled type="BooleanField">