diff --git a/README.md b/README.md index a4578871f..e8d349d06 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ net/haproxy -- Reliable, high performance TCP/HTTP load balancer net/igmp-proxy -- IGMP-Proxy Service net/l2tp -- L2TP server based on MPD5 net/mdns-repeater -- Proxy multicast DNS between networks +net/ntopng -- Traffic Analysis and Flow Collection net/pppoe -- PPPoE server based on MPD5 net/pptp -- PPTP server based on MPD5 net/quagga -- End of life, superseded by FRR plugin diff --git a/net/ntopng/Makefile b/net/ntopng/Makefile new file mode 100644 index 000000000..4ae7e5d1c --- /dev/null +++ b/net/ntopng/Makefile @@ -0,0 +1,8 @@ +PLUGIN_NAME= ntopng +PLUGIN_VERSION= 0.1 +PLUGIN_COMMENT= Traffic Analysis and Flow Collection +PLUGIN_DEPENDS= ntopng redis +PLUGIN_MAINTAINER= m.muenz@gmail.com +PLUGIN_DEVEL= yes + +.include "../../Mk/plugins.mk" diff --git a/net/ntopng/pkg-descr b/net/ntopng/pkg-descr new file mode 100644 index 000000000..ad7b4e38e --- /dev/null +++ b/net/ntopng/pkg-descr @@ -0,0 +1,7 @@ +ntopng is the next generation version of the original ntop, +a network traffic probe that monitors network usage. ntopng +is based on libpcap and it has been written in a portable +way in order to virtually run on every Unix platform, MacOSX +and on Windows as well. + +WWW: https://www.ntop.org/products/traffic-analysis/ntop/ diff --git a/net/ntopng/src/etc/inc/plugins.inc.d/ntopng.inc b/net/ntopng/src/etc/inc/plugins.inc.d/ntopng.inc new file mode 100644 index 000000000..4768bedea --- /dev/null +++ b/net/ntopng/src/etc/inc/plugins.inc.d/ntopng.inc @@ -0,0 +1,55 @@ +enabled == '1'; +} + +function ntopng_services() +{ + $services = array(); + + if (!ntopng_enabled()) { + return $services; + } + + $services[] = array( + 'description' => gettext('ntopng'), + 'configd' => array( + 'restart' => array('ntopng restart'), + 'start' => array('ntopng start'), + 'stop' => array('ntopng stop'), + ), + 'name' => 'ntopng', + 'pid' => '/var/run/ntopng/ntopng.pid' + ); + + return $services; +} diff --git a/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/Api/GeneralController.php b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/Api/GeneralController.php new file mode 100644 index 000000000..d8a6d8642 --- /dev/null +++ b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/Api/GeneralController.php @@ -0,0 +1,39 @@ +configdRun("firmware plugin redis"); + return $response; + } +} diff --git a/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/GeneralController.php b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/GeneralController.php new file mode 100644 index 000000000..28154a3ba --- /dev/null +++ b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/GeneralController.php @@ -0,0 +1,38 @@ +view->generalForm = $this->getForm("general"); + $this->view->pick('OPNsense/Ntopng/general'); + } +} diff --git a/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/forms/general.xml b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/forms/general.xml new file mode 100644 index 000000000..47d8dce6a --- /dev/null +++ b/net/ntopng/src/opnsense/mvc/app/controllers/OPNsense/Ntopng/forms/general.xml @@ -0,0 +1,26 @@ +
diff --git a/net/ntopng/src/opnsense/mvc/app/models/OPNsense/Ntopng/ACL/ACL.xml b/net/ntopng/src/opnsense/mvc/app/models/OPNsense/Ntopng/ACL/ACL.xml new file mode 100644 index 000000000..8a39e4c55 --- /dev/null +++ b/net/ntopng/src/opnsense/mvc/app/models/OPNsense/Ntopng/ACL/ACL.xml @@ -0,0 +1,9 @@ +