ntopng 4.0 is in freshports - could this be updated in pfSense? (2.5.x)
-
The FreshPorts for ntopng has just been updated to the latest stable ntopng version 4.0:
https://www.freshports.org/net/ntopng/
There's some pretty nifty new features in Ntopng 4.0
Do you have any idea of when this Freshports update will flow through to pfSense? (e.g. 2.5.0 snapshots).
(From an earlier thread, they mentioned that ntopng packages would only be updated in pfSense 2.5.0 snapshots. I don't know if that also applies to 2.4.5? Anyhow, I'm happy to try out ntopngs 4.0 on pfSense 2.5.0).
-
You can update it manually by following the instructions here (thanks to Parker Stephens for the post):
https://parkercs.tech/upgrading-ntopng-on-pfsense-to-latest-version/
As of the date of writing (25 July 2020), the links I needed (for pfSense on FreeBSD 11.3 amd64) were:
https://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/All/ntopng-4.0.d20200615_1,1.txz
http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/ndpi-3.2.d20200403_1,1.txzCaution advised though, as by updating manually you're going off grid slightly (i.e. not sensible for a production firewall for a big corporate!). ntopng occasionally changes the command line parameters necessary to start the service, for example. If that happens in a future ntopng release, then it won't work in pfSense until the pfSense UI/package is updated with the corresponding changes - which is why the updated ntopng packages only tend to get pushed out by the pfSense developers as part of a future pfSense release.
-
Do not ever load packages like that from FreeBSD. The odds that you will end up loading a conflicting dependency are fairly high. It's just asking for trouble.
-
2.5.0 already has ntopng 4.0.
-
-
Can this be back ported to 2.4.5?
-
Anyone - is it possilbe to run 4.0 on 2.4.5
-
@cburbs Yes I am running 4.0 on 2.4.5-RELEASE-p1 (amd64). But please see the warnings elsewhere on this thread about it being completely unofficial and unsupported.
-
Do you have any links on how to do this upgrade?
-
So I followed the post from above - https://parkercs.tech/upgrading-ntopng-on-pfsense-to-latest-version/
But the below is the packages I found after doing some digging and it did work.
pkg add -f https://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/All/ntopng-4.0.d20200615_1,1.txz
pkg add -f https://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/All/ndpi-3.2.d20200403_1,1.txz
-
When I installed it (v20200615 seems to be gone so I had to try v20200710) and try to run ntopng I get:
[2.4.5-RELEASE][pfsense]/root: ntopng /usr/local/lib/libjson-c.so.5: version JSONC_0.14 required by /usr/local/bin/ntopng not defined
and I do have libjson-c installed:
[2.4.5-RELEASE][pfsense]/root: pkg info json-c json-c-0.14 Name : json-c Version : 0.14 Installed on : Tue Jun 2 15:11:23 2020 PDT Origin : devel/json-c Architecture : FreeBSD:11:amd64 Prefix : /usr/local Categories : devel Licenses : MIT
Has anyone seen this issue?
-
@netnerdy You can go ahead and upgrade json-c
root@OPNsense:/usr/local/etc/rc.d # pkg install json-c
Worked for me
-
@tpz which version of json-c do you have installed? Can you post your output of
pkg info json-c
-
@netnerdy I had 0.14 then upgraded to 0.15:
root@OPNsense:/ # pkg info json-c
json-c-0.15_1
Name : json-c
Version : 0.15_1
Installed on : Thu Oct 29 22:58:23 2020 CAT
Origin : devel/json-c
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
Categories : devel
Licenses : MIT
Maintainer : sunpoet@FreeBSD.org
WWW : https://github.com/json-c/json-c/wiki
Comment : JSON (JavaScript Object Notation) implementation in C
Options :
PIE : on
RELRO : on
Shared Libs provided:
libjson-c.so.5
Annotations :
FreeBSD_version: 1201000
cpe : cpe:2.3:a:json-c_project:json-c:0.15:::::freebsd12:x64:1
repo_type : binary
repository : OPNsense
Flat size : 316KiB
Description :
This is a port of json-c, an implementation of json in C. Json, JavaScript
Object Notation is a lightweight data exchange format and a subset of the
JavaScript programming language.WWW: https://github.com/json-c/json-c/wiki
-
Thanks! I install json-c from here: https://freebsd.pkgs.org/11/freebsd-amd64/json-c-0.15.txz.html and it worked.
-
Well 4.2 is out but not available for FreeBSD11
ntopng-4.0.d20200710,1.txz
I use this site to see what packages are available -
https://pkgs.org/and did a search for ntop and clicked on FreeBSD11
https://pkgs.org/search/?q=ntop
-
@cburbs I was able to install ntopng 4.2 from www.freshports.org/net/ntopng using ntopng-4.2.d20201102,1.txz in the 'pkg add' statements above.