mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/ntopng: Allow interface selection (#3774)
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
||||
PLUGIN_NAME= ntopng
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_REVISION= 2
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_COMMENT= Traffic Analysis and Flow Collection
|
||||
PLUGIN_DEPENDS= ntopng
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -8,6 +8,10 @@ and on Windows as well.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.3
|
||||
|
||||
* Change interface selection to multiselect
|
||||
|
||||
1.2
|
||||
|
||||
* Changed data directory to avoid warning
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field>
|
||||
<id>general.interface</id>
|
||||
<label>Interfaces</label>
|
||||
<type>dropdown</type>
|
||||
<type>select_multiple</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Select the interface to listen to. Set to none if you want to choose the interface via ntopng UI.</help>
|
||||
</field>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/ntopng/general</mount>
|
||||
<description>ntopng configuration</description>
|
||||
<version>0.0.1</version>
|
||||
<version>0.0.2</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -9,7 +9,8 @@
|
||||
</enabled>
|
||||
<interface type="InterfaceField">
|
||||
<Required>N</Required>
|
||||
<Multiple>N</Multiple>
|
||||
<Multiple>Y</Multiple>
|
||||
<AllowDynamic>Y</AllowDynamic>
|
||||
</interface>
|
||||
<httpport type="PortField">
|
||||
<Required>Y</Required>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{% if helpers.exists('OPNsense.ntopng.general.enabled') and OPNsense.ntopng.general.enabled == '1' %}
|
||||
{% from 'OPNsense/Macros/interface.macro' import physical_interface %}
|
||||
{% if helpers.exists('OPNsense.ntopng.general.interface') and OPNsense.ntopng.general.interface != '' %}
|
||||
-i={{ physical_interface(OPNsense.ntopng.general.interface) }}
|
||||
{% for iface in OPNsense.ntopng.general.interface.split(',') %}
|
||||
-i={{ physical_interface(iface) }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.ntopng.general.httpport') and OPNsense.ntopng.general.httpport != '' %}
|
||||
-w={{ OPNsense.ntopng.general.httpport }}
|
||||
|
||||
Reference in New Issue
Block a user