Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    ntopng 4.0 is in freshports - could this be updated in pfSense? (2.5.x)

    Scheduled Pinned Locked Moved Traffic Monitoring
    17 Posts 8 Posters 3.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      victorhooi
      last edited by

      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).

      1 Reply Last reply Reply Quote 11
      • A
        Andrew453
        last edited by Andrew453

        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.txz

        Caution 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.

        1 Reply Last reply Reply Quote 2
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          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.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            2.5.0 already has ntopng 4.0.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              beeae3d8-f6b4-4588-bfa3-557ebbad08e9-image.png

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 1
              • T
                trumee
                last edited by

                Can this be back ported to 2.4.5?

                C 1 Reply Last reply Reply Quote 2
                • C
                  cburbs @trumee
                  last edited by

                  @trumee

                  Anyone - is it possilbe to run 4.0 on 2.4.5

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Andrew453 @cburbs
                    last edited by

                    @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.

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      cburbs @Andrew453
                      last edited by

                      @Andrew453

                      Do you have any links on how to do this upgrade?

                      1 Reply Last reply Reply Quote 0
                      • C
                        cburbs
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 1
                        • N
                          netnerdy
                          last edited by

                          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?

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            tpz @netnerdy
                            last edited by

                            @netnerdy You can go ahead and upgrade json-c

                            root@OPNsense:/usr/local/etc/rc.d # pkg install json-c

                            Worked for me

                            1 Reply Last reply Reply Quote 0
                            • N
                              netnerdy
                              last edited by

                              @tpz which version of json-c do you have installed? Can you post your output of

                              pkg info json-c

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                tpz @netnerdy
                                last edited by

                                @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

                                1 Reply Last reply Reply Quote 0
                                • N
                                  netnerdy
                                  last edited by

                                  Thanks! I install json-c from here: https://freebsd.pkgs.org/11/freebsd-amd64/json-c-0.15.txz.html and it worked.

                                  1 Reply Last reply Reply Quote 2
                                  • C
                                    cburbs
                                    last edited by

                                    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

                                    I 1 Reply Last reply Reply Quote 0
                                    • I
                                      im_not_a_robot @cburbs
                                      last edited by

                                      @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.

                                      1 Reply Last reply Reply Quote 1
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.