I went through and was going with setting up ntopng via installing the packages via the freebsd package site and all works very well actually.
I hit one minor issue with running as the ntopng user that my files are getting created with super odd permissions:
./0:
total 32
drwx------ 8 ntopng ntopng 512 Aug 10 11:55 .
drwxr-xr-x 8 ntopng ntopng 512 Aug 10 11:54 ..
drwx------ 2 ntopng ntopng 512 Aug 10 11:54 alerts
d--x------ 3 root ntopng 512 Aug 10 11:55 asnstats
d--x------ 9 root ntopng 512 Aug 10 11:55 countrystats
drwx------ 5 ntopng ntopng 1024 Aug 10 11:55 rrd
d--x------ 4 ntopng ntopng 512 Aug 10 11:53 subnetstats
drwx------ 2 ntopng ntopng 512 Aug 10 11:55 top_talkers
./0/alerts:
total 180
drwx------ 2 ntopng ntopng 512 Aug 10 11:54 .
drwx------ 8 ntopng ntopng 512 Aug 10 11:55 ..
-rw-r--r-- 1 ntopng ntopng 176128 Aug 10 11:55 alerts_v7.db
./0/asnstats:
total 12
d--x------ 3 root ntopng 512 Aug 10 11:55 .
drwx------ 8 ntopng ntopng 512 Aug 10 11:55 ..
d--x------ 2 root ntopng 512 Aug 10 11:55 0
I listed a few examples of what I was seeing as I fixed the issue by running as root but that wasn't really how I wanted it to work.
High level steps:
http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/redis-4.0.10_1.txz
echo redis_enable=YES >> /etc/rc.conf
service redis start
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/json-c-0.13.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/libsodium-1.0.16.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/norm-1.5r6.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/openpgm-5.2.122_3.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/libzmq4-4.2.3.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/mysql56-client-5.6.40.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/ndpi-2.2.2.d20180406_1,1.txz
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/ntopng-3.4.d20180604,1.txz
ntopng-geoipupdate.sh
echo "ntopng_enable=YES" >> /etc/rc.conf
echo "ntopng_flags=/usr/local/etc/ntopng.conf" >> /etc/rc.conf
I configured my /usr/local/etc/ntopng.conf with my settings and overall it works like I'd expect it.
18.7.1 will deliver a stable pkg
Oh nice.
Would be super if you add in the ability to add in a custom proto file as well :)
In my example:
--ndpi-protocols /usr/local/etc/protos.conf
cat protos.conf
tcp:32400@Plex
I'll build a plugin around it
ntopng is working now on 18.7... that's a very recent addition. given a bit more time we'll make this even more useful :)
Hello,
How can one install the ntopng package?
Is it done at the terminal prompt as if only using FreeBSD as an operating environment?
I take it there is no way to install from the GUI?
Once installed from the terminal it can be accessed from the router address and port?
When will there be a ntopng package to install from the GUI?
Once it's available it will make OPNsense a stronger platform, IMO.
Keep up the good work guys,
James
I already pulled a plugin. Will be in stable with 18.7.3 I'd guess.
Excellent!
Can you tell me whether it will use redis database and nginx server?
Than k you for your responses
Quote from: jkemp on August 19, 2018, 09:04:50 PM
Can you tell me whether it will use redis database and nginx server?
It very likely uses the redis plugin if installed - I don't know if it is required.
On the nginx side, I have not gotten any information / requests from Michael for any includes.
It uses Redis and has it's own webserver. You can for sure use nginx plugin as a reverse proxy to access ntopng UI.
Any chance of re-configuring the plugin to add a link in the reporting section of the dashboard?
From a technical perspective it would be possible.