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

    Squid Doesn't Seem To Be Caching

    Scheduled Pinned Locked Moved Cache/Proxy
    7 Posts 3 Posters 2.8k 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.
    • J
      jpvonhemel
      last edited by

      Hello,

      New to pfSense and installed squid earlier in the week, enabled transparent mode on the LAN per the pfSense docs and enabled squid.  I left https filtering off per the defaults.

      Now I am not sure the package is working as intended.  As I understand squid, i should cache things like updates, so redownloads on other machines come from the cached data, not the WAN.  It should also speed up http data on subsequent views.

      My Squid Access Log is empty.  Here is a screenshot from dropbox.

      https://www.dropbox.com/s/k0hwl8bom3kzg2j/Screenshot%202016-05-20%2005.49.43.png?dl=0
      I would appreciate some guidance in troubleshooting this.  I am not sure where to begin.

      Thank you,
      Jerold

      1 Reply Last reply Reply Quote 0
      • A
        aGeekhere
        last edited by

        PackageProxy Server: Cache ManagementLocal Cache - enable Cache Dynamic Content

        and try adding Custom refresh_patterns
        https://forum.pfsense.org/index.php?topic=111518.0

        Never Fear, A Geek is Here!

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

          Cache Dynamic Content was enabled but there were not any refresh_patterns.  Will research refresh patterns syntax and go from there.

          Thanks for the point in the right direction

          Jerold

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

            I added the following refresh pattern to my custom refresh patterns and cache dynamic content is checked.

            refresh_pattern ^http://www.cnn.com/.* 720 100% 4320

            After saving the above, I stopped and restarted squid.  I went to www.cnn.com

            It does not appear to be caching as the logs are not showing anything cached and /var/squid/cache/00/00 is empty.

            [2.3-RELEASE][admin@pfSense.XXXXXX]/: ps -auxww | grep squid
            root    12635   0.0  0.4  59956  15596  -  Is    4:38PM     0:00.00 /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
            squid   15816   0.0  0.9 133664  36232  -  S     4:38PM     0:00.50 (squid-1) -f /usr/local/etc/squid/squid.conf (squid)
            squid   16257   0.0  0.1  37616   4604  -  I     4:38PM     0:00.02 (unlinkd) (unlinkd)
            squid   16706   0.0  0.1  37752   4832  -  S     4:38PM     0:00.03 (pinger) (pinger)
            root    53647   0.0  0.1  46568   5772  -  S    Wed09AM     0:06.98 /usr/local/sbin/lighttpd_ls -f /var/etc/lightsquid/lighttpd_ls.conf
            root    46378   0.0  0.1  18740   2248  0  S+    4:39PM     0:00.00 grep squid
            

            Here is a link to my real time page

            https://www.dropbox.com/s/6pgrtylqi307thc/Screenshot%202016-05-21%2016.48.41.png?dl=0

            Any other ideas to help me set Squid up to work?

            Thanks,

            Jerold

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

              This morning I decided to remove the squid package as well as update to 2.3.1.  Once I reinstalled the squid package, it started to cache data.  Not sure if this was a 2.3.1 issue, or a corrupt package install.

              This was the solution to my issue.

              1 Reply Last reply Reply Quote 0
              • W
                W4RH34D
                last edited by

                Just wanted to chime in.

                I had it setup where I was primarily using Ram as cache.  In that setup there weren't any access logs.

                Once I had started using the primary storage as cache is when I saw the access logs.

                Did you really check your cables?

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

                  I failed to remove the settings in squid.conf, so the were set to cache to /var/squid/cache.  The reinstall picked up the old squid.conf settings and is now working well.

                  My install was corrupted somehow, just not sure how.

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