OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Running ntopng
« previous next »
  • Print
Pages: [1]

Author Topic: Running ntopng  (Read 3233 times)

guest15389

  • Guest
Running ntopng
« on: August 10, 2018, 06:02:30 pm »
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:

Code: [Select]
./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:


Code: [Select]
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.


Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5164
  • Karma: 361
    • View Profile
Re: Running ntopng
« Reply #1 on: August 10, 2018, 06:16:20 pm »
18.7.1 will deliver a stable pkg
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

guest15389

  • Guest
Re: Running ntopng
« Reply #2 on: August 10, 2018, 06:30:24 pm »
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
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5164
  • Karma: 361
    • View Profile
Re: Running ntopng
« Reply #3 on: August 10, 2018, 06:34:09 pm »
I'll build a plugin around it
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 10319
  • Karma: 804
    • View Profile
Re: Running ntopng
« Reply #4 on: August 11, 2018, 01:48:06 pm »
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 :)
Logged

jkemp

  • Newbie
  • *
  • Posts: 34
  • Karma: 0
    • View Profile
Re: Running ntopng
« Reply #5 on: August 19, 2018, 06:47:14 pm »
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
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5164
  • Karma: 361
    • View Profile
Re: Running ntopng
« Reply #6 on: August 19, 2018, 07:43:14 pm »
I already pulled a plugin. Will be in stable with 18.7.3 I'd guess.
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

jkemp

  • Newbie
  • *
  • Posts: 34
  • Karma: 0
    • View Profile
Re: Running ntopng
« Reply #7 on: August 19, 2018, 09:04:50 pm »
Excellent!

Can you tell me whether it will use redis database and nginx server?

Than k you for your responses
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2437
  • Karma: 171
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Running ntopng
« Reply #8 on: August 19, 2018, 09:40:29 pm »
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5164
  • Karma: 361
    • View Profile
Re: Running ntopng
« Reply #9 on: August 19, 2018, 10:28:45 pm »
It uses Redis and has it's own webserver. You can for sure use nginx plugin as a reverse proxy to access ntopng UI.
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

jljb66

  • Newbie
  • *
  • Posts: 22
  • Karma: 2
    • View Profile
Re: Running ntopng
« Reply #10 on: October 16, 2018, 09:56:10 pm »
Any chance of re-configuring the plugin to add a link in the reporting section of the dashboard?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2437
  • Karma: 171
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Running ntopng
« Reply #11 on: October 16, 2018, 10:22:00 pm »
From a technical perspective it would be possible.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Running ntopng
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.17 | SMF © 2019, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2