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

    Tutorial: How to Install SquidAnalyzer 6.5 on pfSense 2.4

    Scheduled Pinned Locked Moved Cache/Proxy
    17 Posts 8 Posters 7.2k 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.
    • KOMK
      KOM
      last edited by

      SquidAnalyzer is in marcello's unofficial repo, whole lot better way to install than this manual messing.
      fetch -q -o /usr/local/etc/pkg/repos/Unofficial.conf https://github.com/marcelloc/Unofficial-pfSense-packages/blob/master/Unofficial.24.conf

      Hmm.  The command succeeds without error but there is nothing in the Package Manager when you check it afterwards.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        You need to go to the installed packages tab (or otherwise trigger pkg update).

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          You need to go to the installed packages tab (or otherwise trigger pkg update).

          Already did that and it didn't make any difference but it did give me a clue.  Shelling in and running pkg update manually gave this:

          pkg: Error parsing: '/usr/local/etc/pkg/repos//Unofficial.conf': error while parsing <unknown>: line: 7, column: 0 - 'key must begin with a letter', character: '<'</unknown>

          Edit:  OK, it appears that when you run

          fetch -q -o /usr/local/etc/pkg/repos/Unofficial.conf https://github.com/marcelloc/Unofficial-pfSense-packages/blob/master/Unofficial.24.conf
          

          You are getting the HTML of that particular Github webpage and not the file contents.  My Unofficial.conf was stuffed with bogus HTML.

          When I visited the page and saw the actual 6 lines of code, I made my own config and it's now showing E2Guardian4 as expected.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Read my edit.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Fixed the link.

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

                Just about looking close enough to a real package to install now.. If I had knowledge on how I would make official.

                Dell 2950 g3 server
                Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                Current: 2000 MHz, Max: 2667 MHz
                8 CPUs: 2 package(s) x 4 core(s)
                8152 MiB and 600meg 10k drive
                Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                1 Reply Last reply Reply Quote 0
                • B
                  Biscuitsntea
                  last edited by

                  Thank you everyone for showing me a more concise way. I appreciate the help. Glad to see package moving forward.

                  1 Reply Last reply Reply Quote 0
                  • X
                    Ximulate
                    last edited by

                    Followed the instructions here to fetch marcello's unofficial repo and installed squidanalyzer, which went fine. However, report isn't loading. Getting:

                    Error: Could not find report index file.
                    Check and save Squid Analyzer settings.

                    Edit: My settings:
                    Squid Log Analyzer > General Settings > Squid Log : /var/squid/logs/access.log
                    Services > Proxy Server > General > Enable Access Logging: Enabled
                    Services > Proxy Server > General > Log Store Directory: /var/squid/logs

                    Using Putty to SSH to shell, as Admin, I can access the /var/squid/logs and verify the log files are there. If I SSH as a User, I can't access the /var/squid directory. I assume all this has to do with permissions. I also assume the permissions are set this way for a reason.

                    1 Reply Last reply Reply Quote 0
                    • X
                      Ximulate
                      last edited by

                      Any suggestions about how to get the Squidanalyser reports to work?

                      1 Reply Last reply Reply Quote 0
                      • M
                        maikcat
                        last edited by

                        after installing & enable squidanalyzer you do need to run /usr/local/bin/squid-analyzer manually

                        at least this worked for me…

                        Michael.

                        1 Reply Last reply Reply Quote 0
                        • X
                          Ximulate
                          last edited by

                          That worked. Thank you!

                          1 Reply Last reply Reply Quote 0
                          • B
                            blaze1119
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • B
                              blaze1119
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • K
                                kasalencar @doktornotor
                                last edited by

                                @doktornotor mesmo instalando o repositório não oficial, e buscando o pacote, ele gera essa recomendações de conf mesmo:

                                Após instalar o pacote temos a seguinte recomendação. Você consegue executar?

                                1. Modify your httpd.conf to allow access to HTML output like follow:
                                  Alias /squidreport /usr/local/www/squidreport

                                Options -Indexes FollowSymLinks MultiViews
                                AllowOverride None
                                Order deny,allow
                                Deny from all
                                Allow from 127.0.0.1

                                1. If necessary, give additional host access to SquidAnalyzer in httpd.conf.
                                  Restart and ensure that httpd is running.
                                2. Browse to http://my.host.dom/squidreport/ to ensure that things are working
                                  properly.
                                3. Setup a cronjob to run squid-analyzer daily:

                                SquidAnalyzer log reporting daily

                                0 2 * * * /usr/local/bin/squid-analyzer > /dev/null 2>&1

                                or run it manually.
                                For more information, see /usr/local/share/doc/squidanalyzer/README file.

                                Cleaning up cache… done.

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