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

    SQUID CACHE FILES

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 9.7k 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.
    • O Offline
      onkeldave83
      last edited by

      hello dudes,

      i search for the squid or antivirus cache temp directory!

      i know this:
      /var/squid/cache/
      /var/squidGuard/…

      i search for files like "winrar32.exe" in the cache

      where are the files (human readable :) ) ?

      THANKS FOR ANY HELP

      1 Reply Last reply Reply Quote 0
      • O Offline
        onkeldave83
        last edited by

        or…

        where can i see how much from my 500gb squid cache is in use???

        (but not over disk usage in pfsense sysinfo please!)

        THANKS FOR ANY HELP!!

        1 Reply Last reply Reply Quote 0
        • M Offline
          mhab12
          last edited by

          As far as I know, the cache files are not human readable.  I would just take a look at your disk usage in the GUI/Status/System to estimate cache usage.

          1 Reply Last reply Reply Quote 0
          • Cry HavokC Offline
            Cry Havok
            last edited by

            Cache files are not trivially human readable.  It is possible to do what you're after and this excellent blog post should help you.

            1 Reply Last reply Reply Quote 0
            • O Offline
              onkeldave83
              last edited by

              hmmm….

              i find some jpegs, pngs and so on

              here some commands i used:

              1. cd /var/squid/log/
              2. sort -r -n +4 -5 access.log | awk '{print $5, $7}' | head -25 | grep iso

              with this command i can findmy downloaded debian iso image
              but how can get i detailed information about cache usage, without satus->system (pfsense gui)

              i want to know how much capa from 500gb is used for downloaded cached files till yet ;)

              someone know?

              1 Reply Last reply Reply Quote 0
              • O Offline
                onkeldave83
                last edited by

                i think i found a usefull tool for viewing cache
                is a cgi script named: cachmgr.cgi

                –>  http://wiki.squid-cache.org/SquidFaq/CacheManager

                for configuration i need info about apache version in pfsense1.2.3-release

                ohhh wow search it baby

                --> http://forum.pfsense.org/index.php?topic=14609.0

                perfect thanks gurus!!!!

                1 Reply Last reply Reply Quote 0
                • O Offline
                  onkeldave83
                  last edited by

                  ok i have one problem with this….my structur :(

                  i cant like this:   http://forum.pfsense.org/index.php?topic=14609.0

                  edit the acl localhost to my lan addy

                  acl localhost 127.0.0.1/255.255.255.255

                  change to:

                  acl localhost 192.168.10.10/255.255.255.255

                  this it not possible because of
                  squid:
                  http_port 127.0.0.1:3333

                  Example with result solution ;)

                  when your structur:

                  intranet (wan) –- squid cache --- havp --- intranet (lan)

                  because of havp dont understand ftp protokoll

                  then you have to configure

                  /usr/local/etc/squid/cachemgr.conf

                  localhost:"your squid port"
                  f.e.
                  localhost:6666

                  you schouldnt write ips 127.0.0.1:port          !!!!!!!!!!

                  step two:

                  /usr/local/etc/squid/squid.conf

                  at first add some lines before acl entries:

                  cachemgr_passwd disable offline_toggle reconfigure shutdown
                  cachemgr_passwd none all

                  and second add some lines after acl entries!

                  http_access allow manager localhost
                  http_access allow manager localnet
                  #http_access deny manager

                  i know the entry is false, but i dont have a solution to access with deny all manager rule???!!!!

                  thats all and you can access a perfect cache manager tool for squid ! :)
                  questions = pm

                  Good Luck

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