mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/crowdsec 1.0.1: fixed live logs (#3130)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user