diff --git a/security/maltrail/Makefile b/security/maltrail/Makefile index eec24cb78..874f9d5de 100644 --- a/security/maltrail/Makefile +++ b/security/maltrail/Makefile @@ -1,6 +1,5 @@ PLUGIN_NAME= maltrail -PLUGIN_VERSION= 1.5 -PLUGIN_REVISION= 1 +PLUGIN_VERSION= 1.6 PLUGIN_COMMENT= Malicious traffic detection system PLUGIN_DEPENDS= maltrail PLUGIN_MAINTAINER= m.muenz@gmail.com diff --git a/security/maltrail/pkg-descr b/security/maltrail/pkg-descr index e7ef830a1..8e22fe521 100644 --- a/security/maltrail/pkg-descr +++ b/security/maltrail/pkg-descr @@ -11,6 +11,10 @@ WWW: https://github.com/stamparm/maltrail Changelog --------- +1.6 + +* Allow to set capture buffer size + 1.5 * Change whitelisting format (by @jkellerer) diff --git a/security/maltrail/src/opnsense/mvc/app/controllers/OPNsense/Maltrail/forms/sensor.xml b/security/maltrail/src/opnsense/mvc/app/controllers/OPNsense/Maltrail/forms/sensor.xml index 24636d4a3..df6f7639a 100644 --- a/security/maltrail/src/opnsense/mvc/app/controllers/OPNsense/Maltrail/forms/sensor.xml +++ b/security/maltrail/src/opnsense/mvc/app/controllers/OPNsense/Maltrail/forms/sensor.xml @@ -11,6 +11,12 @@ checkbox This will look into all IPv4 and IPv6 traffic. If disabled it will only look for traffic for icmp, udp, tcp syn packets and on known HTTP ports. + + sensor.capturebuffer + + text + Size of the ring buffer (in MB) to memory-map into the sensor processes for sharing captured network traffic. An undersized buffer may reduce detection rates. Defaults to 10% of available RAM when left blank. + sensor.remoteserver diff --git a/security/maltrail/src/opnsense/mvc/app/models/OPNsense/Maltrail/Sensor.xml b/security/maltrail/src/opnsense/mvc/app/models/OPNsense/Maltrail/Sensor.xml index 3b1174b40..c1b87fcfe 100644 --- a/security/maltrail/src/opnsense/mvc/app/models/OPNsense/Maltrail/Sensor.xml +++ b/security/maltrail/src/opnsense/mvc/app/models/OPNsense/Maltrail/Sensor.xml @@ -1,7 +1,7 @@ //OPNsense/maltrail/sensor Maltrail sensor configuration - 0.0.1 + 0.0.2 0 @@ -11,6 +11,12 @@ 0 Y + + 10 + 1000 + Please specify a buffer size between 10 and 1000 MB + N + N diff --git a/security/maltrail/src/opnsense/service/templates/OPNsense/Maltrail/maltrail.conf b/security/maltrail/src/opnsense/service/templates/OPNsense/Maltrail/maltrail.conf index 7f0715f68..dde70dec8 100644 --- a/security/maltrail/src/opnsense/service/templates/OPNsense/Maltrail/maltrail.conf +++ b/security/maltrail/src/opnsense/service/templates/OPNsense/Maltrail/maltrail.conf @@ -55,7 +55,11 @@ MONITOR_INTERFACE {{ interfaces|join(',') }} {% else %} MONITOR_INTERFACE any {% endif %} +{% if helpers.empty('OPNsense.maltrail.sensor.capturebuffer') %} CAPTURE_BUFFER 10% +{% else %} +CAPTURE_BUFFER {{OPNsense.maltrail.sensor.capturebuffer}}MB +{% endif %} {% if helpers.exists('OPNsense.maltrail.sensor.captureall') and OPNsense.maltrail.sensor.captureall == '1' %} CAPTURE_FILTER ip or ip6 {% else %}