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

    Ntop not creating correct ntop.sh file on reboot

    Scheduled Pinned Locked Moved pfSense Packages
    18 Posts 3 Posters 6.1k 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.
    • C
      Cino
      last edited by

      I manually added the code since its not in the IPv6 codeset yet. Works perfectly! Interfaces stay highlighted now, they weren't before.

      As for my other issue, I think I solved it. I forgot that I inserted my Verizon 3G USB into the router after I got home and added interface ppp0 to the mix. Looking at the logs, Ntop would shutdown shortly after the ppp0 renews. It stayed up all night with all the interfaces expect the ppp0 so far… Lets see what today brings..

      Thanks again

      P.S Would the code you added affect any other plugins? Noticed that impector doesn't keep interface or protocols anymore and I thought it did.

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

        It shouldn't have affected any other packages unless they had some code to work around the fact that the old interface selection was broken. IMspector may have been trying to outsmart the bug.

        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
        • C
          Cino
          last edited by

          @jimp:

          It shouldn't have affected any other packages unless they had some code to work around the fact that the old interface selection was broken. IMspector may have been trying to outsmart the bug.

          I think IMspector worked around it, but now it doesn't know what to do:

          Before the code in my config.xml:

          
          ...
          <iface_array>lan,opt4</iface_array>
          <proto_array>msn,icq,yahoo,irc</proto_array>
          ...
          
          

          after the code change, IMspector wont start if I make changes:

          
          ...
          <iface_array>Array</iface_array>
          <proto_array>Array</proto_array>
          ...
          
          

          From the system log:

          
          Jul 6 10:51:59 	imspector: Good-bye
          Jul 6 10:51:59 	php: imspector: Stopping service: no interfaces and/or protocols selected
          Jul 6 10:51:59 	php: imspector: Interface Array has no ip address, ignoring
          
          

          I manually edited config.xml and it starts on startup… Just can't make any changes to via the web interface.

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

            Hmm, interesting, since the only field name that should have had any change would have been named exactly interface_array, not the others. They should have had the same net effect as before.

            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

              Found it, I forgot one bit in the change I made.

              https://github.com/bsdperimeter/pfsense/commit/292b356f8cdaf26b919009f1a1bc51a1ea02166f

              I pushed all that into the ipv6 fork as well.

              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
              • C
                Cino
                last edited by

                Thank you! That did the trick

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

                  Hi,

                  I'm having the same problem on 2.0 RC3 amd64 with ntop 4.0.1_1 v2 when i choose two ifs. i've checked pkg_edit.php but it's different to the code you posted.

                  Regards.

                  198:208
                  _$fieldname  = $fields['fieldname'];
                  $fieldvalue = $POST[$fieldname];
                  if (is_array($fieldvalue))
                  $fieldvalue = implode(',', $fieldvalue);
                  else {
                  $fieldvalue = trim($fieldvalue);
                  if ($fields['encoding'] == 'base64')
                  $fieldvalue = base64_encode($fieldvalue);
                  }
                  if($fieldname)
                  $pkgarr[$fieldname] = $fieldvalue;

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

                    @ncolunga:

                    I'm having the same problem on 2.0 RC3 amd64 with ntop 4.0.1_1 v2 when i choose two ifs. i've checked pkg_edit.php but it's different to the code you posted.

                    What snapshot date are you on?

                    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
                    • N
                      ncolunga
                      last edited by

                      I've updated to Aug 1 firmware but this didnt solve the problem.

                      Thank you.

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

                        Are you using IPv6 code?

                        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
                        • N
                          ncolunga
                          last edited by

                          No, but i have done a new install, upgrade to Aug 2 firmware and now everything is ok. It seems to be related some way to my old config backup.

                          Thank you.

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