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

    ntopng on 2.5.0 settings lost after restart service

    Scheduled Pinned Locked Moved Traffic Monitoring
    9 Posts 6 Posters 2.3k 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.
    • R
      Rai80
      last edited by

      Since on 2.5.0 when I restart ntopng service all my preferences/settings are gone. Seems like it does a reset of everything.

      Btw. I use ramdisk for /var/db. Don't know if this has affect.

      viktor_gV 1 Reply Last reply Reply Quote 0
      • R
        Rai80
        last edited by Rai80

        After troubleshooting I've found a workaround.

        After setting preferences and settings I ran: /usr/local/bin/redis-cli save

        This will save the settings to /var/db/ntopng.rdb (Redis DB)

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

          Has there been any official acknowledgement on this? It's frustrating to have to reconfigure ntopng between reboots.

          1 Reply Last reply Reply Quote 0
          • 3
            3freet
            last edited by 3freet

            ntonpg package for pfsense has been broken for a long time, and still is in the latest 2.5 version. I generally try to separate network analysis tools from the firewall for performance reasons, but sometimes it's ok for non critical deployments. I recently had to integrate ntopng with pfsense in the same box, but found the package that ships with the package manager broken and full of bugs like the one mentioned in this post.

            After a lot of troubleshooting, I concluded that the best approach is to install ntopng as a third party package from the command shell like on any other system.
            You either follow the instructions here at packages.ntop.org/FreeBSD (Note that pfsense 2.5 is FreeBSD 12), or you simply use the official pkg.freebsd.org which is included in pfsense by default.

            ntop.org will get you the latest development build, while freebsd.org has a stable 4.2 build, but sometimes they get too behind in version.

            I wrote a dedicated blog post but this is the process in short:
            '
            '
            '
            1- On pfsense 2.5, install ntopng and redis database using the shell

            pkg install ntopng redis
            

            2- Enable ntopng and redis services

            sysrc redis_enable="YES"
            sysrc ntopng_enable="YES"
            

            3- Install Shellcmd package from pfsense gui package manager

            4- Add the below entries to Shellcmd settings and save

            service redis start
            service ntopng start
            

            5- Configure ntopng geolocation by downloading the relevant .mmdb files from MaxMind and place them in the folder
            "/usr/local/share/ntopng/httpdocs/geoip"

            6- Edit the startup script of ntopng to add your custom command arguments located in "/usr/local/etc/rc.d/ntopng"

            7- Start redis and ntopng services, or simply reboot pfsense

            service start redis
            service start ntopng
            
            R 1 Reply Last reply Reply Quote 1
            • R
              Rai80 @3freet
              last edited by

              @3freet Thanks for sharing! Will try this.

              1 Reply Last reply Reply Quote 0
              • G
                guntery
                last edited by

                6: how do you add the argument?

                /usr/local/etc/ntopng.conf is ignored.
                /usr/local/etc/rc.d/ntopng is ignored.

                G 1 Reply Last reply Reply Quote 0
                • G
                  guntery @guntery
                  last edited by

                  /usr/local/etc/rc.d/ntopng

                  adding here worked:

                  command_args="-G ${ntopng_pidfile} -e --community -i vtnet1 -i -w 3000"
                  
                  1 Reply Last reply Reply Quote 0
                  • viktor_gV
                    viktor_g Netgate @Rai80
                    last edited by

                    @rai80 said in ntopng on 2.5.0 settings lost after restart service:

                    Since on 2.5.0 when I restart ntopng service all my preferences/settings are gone. Seems like it does a reset of everything.

                    Btw. I use ramdisk for /var/db. Don't know if this has affect.

                    fixed in NTOPNG 0.8.13_10:
                    https://redmine.pfsense.org/issues/11640

                    1 Reply Last reply Reply Quote 1
                    • C
                      ctuchik
                      last edited by ctuchik

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