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

    Ntop is NOT gone! (pfsense 1.2.* instruction for installation)

    Scheduled Pinned Locked Moved pfSense Packages
    23 Posts 12 Posters 25.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.
    • S
      Soyokaze
      last edited by

      As I promised:
      HOW TO install ntop on pfsense:

      1. obtain alt_pkg.php and ntop.xml and pkg_config_for_local_ntop.xml
      2. goto Diagnostics/ command prompt, upload alt_pkg.php (notice "uploaded file to /tmp/alt_pkg.php")
      3. in execute shell command type: mv /tmp/alt_pkg.php /usr/local/www
      4. go to goto Diagnostics/ command prompt, upload ntop.xml (notice "uploaded file to /tmp/ntop.xml")
      5. in execute shell command type: mv /tmp/ntop.xml /usr/local/www
      6. in browser goto YOUR_PFSENSE/alt_pkg.php, click install
      7. check "local xml base url (127.0.0.1)", click define
      8. in big field bellow "define" button, copy-paste contents of pkg_config_for_local_ntop.xml, click save.
      9. go to system-packages, check if ntop is avaible.
      10. install it, after installation go to Services-Alt Package Manager, check "Standart pfSense 'XML Base URL'", click Define (so "packages" will behave as usual)
      11. go to diagnostics->ntop settings, provide password, select LAN interface, click Change.
      12. click Access ntop tab.
      13. Enjoy.

      Where to get alt_pkg.php?
      Go to http://diskatel.narod.ru/ , in line with "Alt package manager" click rightmost link "скачать PHP"
      or look in attachment (and don't forget to remove .txt extesion!)
      or copy from here:

      /*
          alt_pkg.php
          Copyright (C) 2007 Serg Dvoriancev
          All rights reserved.
      
          Redistribution and use in source and binary forms, with or without
          modification, are permitted provided that the following conditions are met:
      
          1\. Redistributions of source code must retain the above copyright notice,
             this list of conditions and the following disclaimer.
      
          2\. Redistributions in binary form must reproduce the above copyright
             notice, this list of conditions and the following disclaimer in the
             documentation and/or other materials provided with the distribution.
      
          THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
          INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
          AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
          AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
          oR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
          SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
          INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
          CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
          ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
          POSSIBILITY OF SUCH DAMAGE.
      */
      
              ## Load Essential Includes
              require_once('guiconfig.inc');
              require_once('notices.inc');
      
              ## Load Functions Files
              require_once('includes/functions.inc.php');
      
              ## Set Page Title and Include Header
      
              $pgtitle = "Alt Package Manager";
              include("head.inc");
      
              include("fbegin.inc");
      ?>
      
      **ATTENTION:** Use this packge on your own risk!
      
      <form action="alt_pkg.php" method="post" enctype="multipart/form-data">
      
              require_once('globals.inc');
              global $g;
      
              define('GLOBALS_INC_FILE', "globals.inc");
              define('GLOBALS_INC_PATH', "/etc/inc/" );
              define('GLOBALS_KEY',      "\$g[\"xmlrpcbaseurl\"]=");
              define('PACKAGES_PATH',    '/usr/local/www/packages');
              define('XMLRPC_DIR',       '/usr/local/www/pfSense');
              define('XMLRPC_ARCHURL',   "http://diskatel.narod.ru/pfSense/pfSense.tbz");
              define('XMLRPC_TMPFILE',   "/tmp/pfSense.tbz");
              define('XMLRPC_LOCALPATH', "/usr/local/www");
      
              $post = $_POST["submit"];
      #        if (empty($post))
      #            $post = $_GET["submit"];
      
              $pkg_config_content = '';
              $pkg_config_file = '/usr/local/www/packages/pkg_config.xml';
              switch ($post) {
                      case "Install":
                           $res = install_alt_package();
                           if (!$res)
                               $res = "Installed success. Reboot you Windows system.";
                           echo "";
                      break;
      
                      case "Define":
                           switch($_POST["rpctype"]) {
                                  case "base":
                                       setup_system_package_source_url();
                                       break;
                                  case "local":
                                       setup_user_package_source_url('127.0.0.1');
                                       break;
                                  case "user":
                                       if ($_POST["user_url"])
                                           setup_user_package_source_url($_POST["user_url"]);
                                       break;
                           }
                      break;
      
                      case "Load":
                           if (file_exists($pkg_config_file)) {
                               $pkg_config_content = file_get_contents($pkg_config_file);
                           } else
                               $pkg_config_content = "File '$pkg_config_file' not found";
                      break;
      
                      case "Save":
                           $pkg_config_content = $_POST["pkg_config"];
                           if (($g["xmlrpcbaseurl"] === '127.0.0.1') and !empty($pkg_config_content)) {
                               file_put_contents($pkg_config_file, $pkg_config_content);
                           }
                           $pkg_config_content = '';
                      break;
              }
      
              if (!check_installation()) {
                      //  installation
                      echo "";
                      echo "";
                      echo "";
             } else {
                      $chk1 = 'checked';
                      $chk2 = '';
                      $chk3 = '';
                      switch($_POST["rpctype"]) {
                             case "base":  $chk1 = 'checked';
                                           $chk2 = '';
                                           $chk3 = '';
                                           break;
                             case "local": $chk1 = '';
                                           $chk2 = 'checked';
                                           $chk3 = '';
                                           break;
                             case "user":  $chk1 = '';
                                           $chk2 = '';
                                           $chk3 = 'checked';
                                           break;
                      }
      
                      if ($_POST["rpctype"] !== 'user') $_POST["user_url"] = '';
      
                      // define rpc
                      echo "";
                      echo "";
                        echo "";
                        echo "";
                        echo "";
                        echo "";
                        echo "";
                      if ($g["xmlrpcbaseurl"] === '127.0.0.1') {
                          echo "";
                          echo "";
                          echo "";
                      }
                      echo "";
              }
      
      // -----------------------------------------------------------------------------
      function check_installation() {
               global $config;
               global $pgtitle;
      
               $msg='';
      
               // 1\. check installation xmlrpc
               $is_exists_xmlrpc = false;
               if (file_exists(XMLRPC_DIR)) {
                   $is_exists_xmlrpc = true;
                   $msg .= " xmlrpc-OK ";
               }
      
               // 2\. check installation menu
               $is_exists_menu = false;
               $mn = $config['installedpackages']['menu'];
               $ix = 0;
               if ($mn and is_array($mn)) {
                   foreach($mn as $key => $val) {
                       if ($val['name'] === $pgtitle) {
                           $is_exists_menu = true;
                           $msg .= " menu-OK ";
                           break;
                       }
                       $ix++;
                   }
               }
      
               // 3\. check 'packages' catalog
               if (!file_exists(PACKAGES_PATH)) {
                   mwexec("mkdir -p " . PACKAGES_PATH);
               } else
                 $msg .= " package catalog-OK ";
      
               if ($msg) print "[$msg]";
      
               return $is_exists_xmlrpc and $is_exists_menu;
      }
      
      function install_alt_package() {
               global $config;
               global $pgtitle;
      
               $result = '';
               $content = '';
      
               // 1\. install xmlpc
      
               // old download part
      /*         $ch = curl_init();
               curl_setopt($ch, CURLOPT_URL, XMLRPC_ARCHURL);
               curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
               $content=curl_exec ($ch);
               curl_close($ch);  */
      
               // new download part
               $content = file_get_contents(XMLRPC_ARCHURL);
               if ($content) {
                   file_put_contents(XMLRPC_TMPFILE, $content);
                   $result .= " Uploaded: " . XMLRPC_ARCHURL . " and stored as " . XMLRPC_TMPFILE;
               }
               else $result .= " ERROR: File " . XMLRPC_ARCHURL . " not uploaded.";
      
               if (file_exists(XMLRPC_TMPFILE)) {
                   $cmd = "tar zxvf " . XMLRPC_TMPFILE. " -C " . XMLRPC_LOCALPATH;
                   $result .= " Extracting: " . XMLRPC_TMPFILE . " -> " . XMLRPC_LOCALPATH . " CMD:'$cmd'";
                   mwexec($cmd);
               }
               else $result .= " ERROR: File " . XMLRPC_TMPFILE . " not found.";
      
               // 2\. install menu
               $menu = array();
               $menu['name'] = $pgtitle;
               $menu['tooltiptext'] = "Alternative package manager";
               $menu['section'] = "Services";
               $menu['url'] = "/alt_pkg.php";
      
               $mn = $config['installedpackages'];
               $is_exists = false;
               $ix = 0;
               foreach($mn as $key => $val) {
                       if ($key === "menu") {
                           if ($val == $pgtitle) {
                               $is_exists = true;
                               break;
                           }
                       }
                       $ix++;
               }
      
               if ($is_exists) {
                      unset($config['installedpackages']['menu'][$ix]);
                      $config['installedpackages']['menu'][] = $menu;
               } else {
                      $config['installedpackages']['menu'][] = $menu;
               }
               write_config("Adding Alt package manager menu");
      
               return $result;
      }
      
      function setup_user_package_source_url($url) {
               global $g;
      
               $gl_file = GLOBALS_INC_PATH . GLOBALS_INC_FILE;
               if (file_exists($gl_file)) {
                   $gl_content = file_get_contents($gl_file);
                   $gl_content = explode("\n", $gl_content);
      
                   $ix=0;
                   $found=false;
                   foreach($gl_content as $gl) {
                           if (strstr($gl, GLOBALS_KEY)) {
                               $found=true;
                               break;
                           }
                           $ix++;
                   }
      
                   if ($found) {
                       $gl_content[$ix] = GLOBALS_KEY . "\"" . $url . "\";";
                       print "";
                   } else {
                       $gl_content[] = "                 $gl_content[] = GLOBALS_KEY . "\"" . $url . "\";";
                       $gl_content[] = "?>";
                       print "";
                   }
                   $g["xmlrpcbaseurl"]= $url;
      
                   $gl_content = implode("\n", $gl_content);
                   file_put_contents($gl_file, $gl_content);
      #             file_put_contents("/tmp/" . GLOBALS_INC_FILE, $gl_content);
              }
      }
      
      function setup_system_package_source_url() {
               global $g;
      
               $gl_file = GLOBALS_INC_PATH . GLOBALS_INC_FILE;
               if (file_exists($gl_file)) {
                   $gl_content = file_get_contents($gl_file);
                   $gl_content = explode("\n", $gl_content);
      
                   $ix=0;
                   foreach($gl_content as $gl) {
                           if (strpos($gl, GLOBALS_KEY) === 0) { // find not remed variable
                               $gl_content[$ix] = "#" . $gl_content[$ix];
                               print "";
                           }
                           $ix++;
                   }
                   $g["xmlrpcbaseurl"]= "www.pfsense.com";
      
                   $gl_content = implode("\n", $gl_content);
                   file_put_contents($gl_file, $gl_content);
      #             file_put_contents("/tmp/" . GLOBALS_INC_FILE, $gl_content);
              }
      }
      
      define('XMLRPC_ARCH_URL', 'http://');
      define('XMLRPC_ARCH_TMP', '/tmp/axmlrpc.tar');
      
      function add_xmlrps_tosystem() {
          $xmlrpc_filename = XMLRPC_ARCH_URL;
          $result = '';
          if (file_exists($xmlrpc_filename)) {
              $file_content = file_get_contents($xmlrpc_filename);
              if ($file_content !== false) {
                file_put_contents(XMLRPC_ARCH_TMP, $file_content);
                mwexec('tar zxvf ' . XMLRPC_ARCH_TMP . ' -C /var/tmp/');
                mwexec("cp -Rf " . "... ");
      
              } else $result = "Error upload '$xmlrpc_filename'";
          } else $result = "Error - file '$xmlrpc_filename' not found";
          return $result;
      }
      
      ?>
      
      | $res |
      | Installation Alt Package Manager |
      | Click here for begin installation Alt Package Manager |
      |  |
      | Select packages source |
      | Current 'XML Base URL': **" . $g["xmlrpcbaseurl"] . "** |
      | Standart pfSense 'XML Base URL' |
      | Local 'XML Base URL' (127.0.0.1) |
      | Alternative user 'XML Base URL' |
      |  Enter new XMLRPC Url here |
      |  |
      | Change local 'pkg_config.xml' |
      |  |
      | 
                                 |
      |   |
      | **Setup user package URL ('$url'): success** |
      | **Add user package URL ('$url'): success** |
      | **Setup base package URL: success** |
      
      </form>
      
      

      Where to get ntop.xml?
      Look in attachment (and don't forget to remove .txt extesion!)
      or copy from here:

      
       <packagegui><copyright>/* $Id: ntop.xml,v 1.54 2007/09/01 06:30:15 dsh Exp $ */
      /* ========================================================================== */
      /*
          authng.xml
          part of pfSense (http://www.pfSense.com)
          Copyright (C) 2007 to whom it may belong
          All rights reserved.
      
          Based on m0n0wall (http://m0n0.ch/wall)
          Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
          All rights reserved.
                                                                                    */
      /* ========================================================================== */
      /*
          Redistribution and use in source and binary forms, with or without
          modification, are permitted provided that the following conditions are met:
      
           1\. Redistributions of source code must retain the above copyright notice,
              this list of conditions and the following disclaimer.
      
           2\. Redistributions in binary form must reproduce the above copyright
              notice, this list of conditions and the following disclaimer in the
              documentation and/or other materials provided with the distribution.
      
          THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
          INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
          AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
          AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
          OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
          SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
          INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
          CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
          ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
          POSSIBILITY OF SUCH DAMAGE.
                                                                                    */
      /* ========================================================================== */
              ]]></mk@neon1.net></copyright> 
          <description>Describe your package here</description>
          <requirements>Describe your package requirements here</requirements>
          <faq>Currently there are no FAQ items provided.</faq>
      	<name>ntop</name>
      	<version>3.0</version>
      	<title>Diagnostics: ntop Settings</title>
              <savetext>Change</savetext>
      	<aftersaveredirect>pkg_edit.php?xml=ntop.xml&id=0</aftersaveredirect>
      
      <menu>
      		<name>ntop Settings</name>
      		<tooltiptext>Set ntop settings such as password and port.</tooltiptext>
      		Diagnostics
      		<url>/pkg_edit.php?xml=ntop.xml&id=0</url>
      	</menu>
      
      <menu>
      		<name>ntop</name>
      		<tooltiptext>Access ntop</tooltiptext>
      		Diagnostics
      		<url>http://$myurl:3000</url>
      		<depends_on_service>ntop</depends_on_service>
      	</menu>
      
      	 <service><name>ntop</name>
                              <rcfile>ntop.sh</rcfile>
                              <executable>ntop</executable></service> 
      	 <tabs><tab><text>ntop Settings</text>
      			<url>/pkg_edit.php?xml=ntop.xml&id=0</url>
      			 <active></active></tab> 
      		 <tab><text>Access ntop</text>
      			<url>http://$myurl:3000</url></tab></tabs> 
      
      	 <fields><field><fielddescr>ntop Admin Password</fielddescr>
      			<fieldname>password</fieldname>
      			<description>Enter the password for the NTOP Web GUI.  Minimum 5 characters.</description>
      			<type>password</type></field> 
      		 <field><fielddescr>ntop Admin Password AGAIN</fielddescr>
      			<fieldname>passwordagain</fieldname>
      			<type>password</type></field> 
      		 <field><fielddescr>Interface</fielddescr>
      			<fieldname>interface_array</fieldname>
      			<type>interfaces_selection</type>
      			<size>3</size>
      			<value>lan</value>
      			<multiple>true</multiple></field></fields> 
      	 <custom_php_global_functions>function sync_package_ntop() {
      	    conf_mount_rw();
      	    config_lock();
      	    global $config;
      	    global $input_errors;
      	    $ntop_config =& $_POST;
      	    $if_final = "";
      	    $ifaces_final = "";
      	    system("/bin/mkdir -p /var/db/ntop");
      	    system("/bin/mkdir -p /var/db/ntop/rrd");
      	    system("/bin/mkdir -p /var/db/ntop/rrd/graphics");
      	    system("chown nobody:nobody /var/db/ntop");
      	    system("chown nobody:nobody /var/db/ntop/rrd/graphics");
      	    if($ntop_config['password'] and $ntop_config['passwordagain']) {
      		    if($ntop_config['password'] == $ntop_config['passwordagain']) {
      			    $first = 0;
      			    foreach($_POST['interface_array'] as $iface) {
      				$if = convert_friendly_interface_to_real_interface_name($iface);
      				if($if) {
      				    if($first == 1)
      					$ifaces_final .= ",";
      				    $ifaces_final .= $if;
      				    $first = 1;
      				}
      			    }
      			    exec("/usr/local/bin/ntop --set-admin-password=" . $_POST['password'] . " &", $ntopout);
      			    $start = "/usr/local/bin/ntop -i " . $ifaces_final . " -u root -d --ipv4 -M -x 8102 -X 8192 &";
      			    write_rcfile(array(
      						    "file" => "ntop.sh",
      						    "start" => $start,
      						    "stop" => "/usr/bin/killall ntop"
      					    )
      			    );
      			    restart_service("ntop");
      		    } else {
      			    $input_errors[] = "The provided passwords did not match.";
      		    }
      	    } else {
      		    $input_errors[] = "You must provide (and confirm) ntop's password.";
      	    }
      	    conf_mount_ro();
      	    config_unlock();
      	}</custom_php_global_functions> 
      	 <custom_add_php_command>sync_package_ntop();</custom_add_php_command> 
      	 <custom_php_resync_config_command>sync_package_ntop();</custom_php_resync_config_command> 
      	 <custom_php_install_command></custom_php_install_command> 
      	 <custom_php_deinstall_command>exec("rm /usr/local/etc/rc.d/ntop*");</custom_php_deinstall_command></packagegui> 
      
      

      Where to get pkg_config_for_local_ntop.xml?
      Look in attachment (and don't forget to remove .txt extesion!)
      or copy from here:

      
       <pfsensepkgs><packages><package><name>ntop</name>
            <descr>ntop brought back for you by pan_2\. Thanks to dvserg for AltPkg!</descr>
            <website>http://google.com</website>
            <category>Services</category>
            <version>1</version>
            <status>BETA</status>
            <required_version>1.2</required_version>
            <depends_on_package_base_url>http://files.pfsense.org/packages/All/</depends_on_package_base_url>
            <depends_on_package>ntop-3.2_3.tbz</depends_on_package>
            <config_file>http://127.0.0.1/ntop.xml</config_file>
            <configurationfile>ntop.xml</configurationfile></package></packages> 
       <endofpackages></endofpackages></pfsensepkgs> 
      

      Special thanks goes to Serg Dvoriancev for his AltPkg

      I've tested this on 3 pfsenses: 1 virtual and 2 real (our company's router and one of our client's), all worked ok.
      Should work on 1.2.1 too.

      PS this instruction provided AS IS, so if you brick your pfsense - you was warned.

      PSS little update…
      ~~–----------------------------------------
      SEE POST http://forum.pfsense.org/index.php/topic,11937.msg65958.html#msg65958 for instruction…
      –--------------------------------------
      Hi.
      Anybody knows why ntop package no more listed in "Available 1.2-RELEASE packages"?
      I've even setup new pfsense machine for test, but there is no ntop too.

      UPD: in 1.2.1 there is no ntop too.~~
      alt_pkg.php.txt
      pkg_config_for_local_ntop.xml.txt
      ntop.xml.txt

      Need full pfSense in a cloud? PM for details!

      1 Reply Last reply Reply Quote 0
      • P
        phenam
        last edited by

        @pan_2:

        Hi.
        Anybody knows why ntop package no more listed in "Available 1.2-RELEASE packages"?
        I've even setup new pfsense machine for test, but there is no ntop too.

        Just wanted to confirm the same observation.  Actually I noticed it was missing a couple of days ago, but assumed it was due to my fiddling(learning) with my pfSense box.  Without doing a new reinstall, cant say for sure its not showing up for me because of something Ive done to my setup :P

        1 Reply Last reply Reply Quote 0
        • S
          Soyokaze
          last edited by

          @phenam:

          Without doing a new reinstall, cant say for sure its not showing up for me because of something Ive done to my setup :P

          I've just used Virtual Server for that =)

          As I found, some ntop packages still available at address http://files.pfsense.org/packages/All/ntop-3.2_?.tbz
          where ? is from 1 to 3, but I don't sure this is THAT ntop which was available.
          Also, it looks like there would be need some untrivial actions to integrate it to pfsense.

          looks like this is not we need.
          Also, as I found, ntop not only not listed on http://pfsense.com/packages/pkg_config.xml, but also there is no configuration file in http://www.pfsense.com/packages/config/ntop/ntop.xml. Of course it can other name for it, but…

          Need full pfSense in a cloud? PM for details!

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            Can anyone answer this? I was looking to install it on Monday, and noticed it was not available in the packages.

            I love this monitor, and don't think I could live without it!

            Would anyone know of an alternate way I might be able to get it?

            1 Reply Last reply Reply Quote 0
            • J
              jmalez
              last edited by

              YES, GONE ON MY NEW INSTALL, AND I USED THAT PACKAGE DAILY

              1 Reply Last reply Reply Quote 0
              • S
                Soyokaze
                last edited by

                Looks like there is no ntop in 1.2.1 too….
                ( http://forum.pfsense.org/index.php/topic,11955.0.html )

                Need full pfSense in a cloud? PM for details!

                1 Reply Last reply Reply Quote 0
                • T
                  thinair
                  last edited by

                  Any update on this?  BandwidthD and Darkstat don't offer anywhere near the stats that ntop provides.

                  Nelson Papel

                  1 Reply Last reply Reply Quote 0
                  • S
                    Soyokaze
                    last edited by

                    looks like we're forced to integrate ntop to pfsense manually.
                    I've got one or two installations with working ntop, so in couple of days I'll upload xml and other needed files.
                    Any help will be appreciated.

                    Need full pfSense in a cloud? PM for details!

                    1 Reply Last reply Reply Quote 0
                    • S
                      Soyokaze
                      last edited by

                      Moved to 1st post: http://forum.pfsense.org/index.php/topic,11937.msg65271.html#msg65271

                      Need full pfSense in a cloud? PM for details!

                      1 Reply Last reply Reply Quote 0
                      • P
                        phenam
                        last edited by

                        Great work Pan_2!   ;D

                        Thought Id give it a go myself to test.  I followed your instructions but when I get to the part to check for ntop in packages, I receive this error "Unable to retrieve package info from 127.0.0.1. Cached data will be used."

                        At first I thought I might be my squid/squid guard.  So I try to stop the service completely to see if this resolves the issue, but alas I still get the same error.

                        I have searched through the forum for this exact thing, which gave me a couple of threads relating to this topic which dvserg has worked on.  I followed the several hints from those threads but I seem to be stuck as to what else to try.  I checked and rechecked that all the three files and code are in the right places too.

                        Anything else anyone can suggest? thanks.

                        Edit:  I just wanted to add that for some reason the pfsense box is unable to resolve the 127.0.0.1 address.  Although I cant think of the reason why this is so.  Which would explain my error above.  I am able to ping 127.0.0.1 from the shell.  Very odd indeed.

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

                          From the CVS logs:

                          reason for ntop package removal:
                          
                          * librrd_th.so.2 not being installed
                          * package conflicts with base rrd package version (previous version)
                          
                          

                          And it doesn't work right on FreeBSD regardless, due to threading bugs it'll chew up 100% CPU pretty routinely.

                          1 Reply Last reply Reply Quote 0
                          • D
                            docwho76
                            last edited by

                            Is this a problem with the current version of the FreeBSD ntop port, or just the version of ntop that pfSense was using?

                            1 Reply Last reply Reply Quote 0
                            • S
                              Soyokaze
                              last edited by

                              @phenam:

                              Great work Pan_2!   ;D

                              Thought Id give it a go myself to test.  I followed your instructions but when I get to the part to check for ntop in packages, I receive this error "Unable to retrieve package info from 127.0.0.1. Cached data will be used."

                              At first I thought I might be my squid/squid guard.  So I try to stop the service completely to see if this resolves the issue, but alas I still get the same error.

                              I have searched through the forum for this exact thing, which gave me a couple of threads relating to this topic which dvserg has worked on.  I followed the several hints from those threads but I seem to be stuck as to what else to try.  I checked and rechecked that all the three files and code are in the right places too.

                              Anything else anyone can suggest? thanks.

                              Edit:  I just wanted to add that for some reason the pfsense box is unable to resolve the 127.0.0.1 address.  Although I cant think of the reason why this is so.  Which would explain my error above.  I am able to ping 127.0.0.1 from the shell.  Very odd indeed.

                              This goes then you don't change to local package info in right order in AltPkg or local package list is not written succesfully.
                              try to go to http://yourpfsense/packages/pkg_config.xml , if it shows up - just try to reboot, change to default package source - save - change to local. should work someway.
                              Also, try to do this on clean install (in virtual machine for example), at least you will be sure you are doing all right.

                              @cmb:

                              From the CVS logs:

                              reason for ntop package removal:
                              
                              * librrd_th.so.2 not being installed
                              * package conflicts with base rrd package version (previous version)
                              
                              

                              And it doesn't work right on FreeBSD regardless, due to threading bugs it'll chew up 100% CPU pretty routinely.

                              well, works fine in at least 4 installations. magic, I suppose =)

                              Need full pfSense in a cloud? PM for details!

                              1 Reply Last reply Reply Quote 0
                              • S
                                Soyokaze
                                last edited by

                                @phenam:

                                Unable to retrieve package info from 127.0.0.1

                                last note - pfsense is very "picky" about pkg_config.xml, maybe you just try copy it again.
                                or save through "edit file" menu

                                Need full pfSense in a cloud? PM for details!

                                1 Reply Last reply Reply Quote 0
                                • P
                                  phenam
                                  last edited by

                                  @pan_2:

                                  @phenam:

                                  Unable to retrieve package info from 127.0.0.1

                                  last note - pfsense is very "picky" about pkg_config.xml, maybe you just try copy it again.
                                  or save through "edit file" menu

                                  I tried your suggestions on my own before I posted the problem on here but no matter what I do I got the same result.  Going to http://yourpfsense/packages/pkg_config.xml works as expected.

                                  I stopped trying to get ntop to work since we were advised with the issues it currently has.  Id rather not risk using it, but thanks for all your effort to get it working =)

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    techatdd
                                    last edited by

                                    @phenam:

                                    Great work Pan_2!   ;D

                                    Thought Id give it a go myself to test.  I followed your instructions but when I get to the part to check for ntop in packages, I receive this error "Unable to retrieve package info from 127.0.0.1. Cached data will be used."

                                    At first I thought I might be my squid/squid guard.  So I try to stop the service completely to see if this resolves the issue, but alas I still get the same error.

                                    I have searched through the forum for this exact thing, which gave me a couple of threads relating to this topic which dvserg has worked on.  I followed the several hints from those threads but I seem to be stuck as to what else to try.  I checked and rechecked that all the three files and code are in the right places too.

                                    Anything else anyone can suggest? thanks.

                                    Edit:  I just wanted to add that for some reason the pfsense box is unable to resolve the 127.0.0.1 address.  Although I cant think of the reason why this is so.  Which would explain my error above.  I am able to ping 127.0.0.1 from the shell.  Very odd indeed.

                                    For me it worked as expected after changing GUI protocol to http and port to 80. But it added an entry to globals.inc ($g["xmlrpcbaseurl"]= "www.pfsense.com"; ) preventing GUI from working anymore. But after removing this with vi all works, and I have ntop again.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tempress
                                      last edited by

                                      Does not work on 1.2.1 due to missing libraries (freebsd noob here).

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        devnull
                                        last edited by

                                        Hey,

                                        too bad about ntop. I needed it and could not find it and thought I was going crazy.
                                        So I found this string but can't seem to get ntop working.
                                        I keep getting the same error "Unable to retrieve package info from 127.0.0.1. Cached data will be used."

                                        My version is 1.2-RC4 (Tue Jan 15 23:05:07 EST 2008)

                                        Hope ntop gets working again sure could use it. :-(

                                        Bye

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          devnull
                                          last edited by

                                          Hi,

                                          I've just tried again on a completely different PFS and got the same error about Local cache could not be retrieved. I did everything like as instructed accept for the uploading of the two files witch I did via scp but I checked everything and it shouldn't make a difference. But I still keep getting the same error. Is there something else that I should try when I switch to local a reboot or something else to get ntop going?

                                          Thanks for the help and bye

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            devnull
                                            last edited by

                                            Hi,

                                            I finally figured out why I was not able to add the package.
                                            I'm running a transparent proxy and so I had to move the web interface to a different port (81).
                                            So I disabled the proxy and changed back the administration to non secure port 80 and it seems to work like a charm.

                                            Hop this helps someone.

                                            Best regards and bye

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