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

    Squid 3 not caching anything

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 1.6k 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.
    • G
      gino1631
      last edited by

      Hello guys!

      I'm just new in this forums so sorry if I just reposted the same topic.
      So here's is my problem. I've been trying a week just to get Squid3 to cache Everything. But still don't work.

      Squid3 is the only package installed in my pfSense box.
      And my Configurations were set like this:

      General:
      Proxy interface: LAN
      Allow users on interface: CHECK
      Transparent HTTP proxy: CHECK
      Patch captive portal: CHECK
      Bypass proxy for Private Address destination: CHECK

      Local Cache:
      Hard disk cache size: 71680
      Hard disk cache system: aufs
      Maximum object size: 204800
      Memory cache size: 512
      Maximum object size in RAM: 1024
      Cache Dynamic Content: CHECK
      Refresh Patterns: *Selected Everything

      Squid.conf

      # This file is automatically generated by pfSense
      # Do not edit manually !
      http_port 192.168.10.254:3128
      http_port 127.0.0.1:3128 intercept
      icp_port 7
      dns_v4_first off
      pid_filename /var/run/squid.pid
      cache_effective_user proxy
      cache_effective_group proxy
      error_default_language az
      icon_directory /usr/pbi/squid-i386/etc/squid/icons
      visible_hostname cache.ginolagarde.tk
      cache_mgr pbs.inc.webmaster@hotmail.com
      access_log /var/squid/logs/access.log
      cache_log /var/squid/logs/cache.log
      cache_store_log none
      sslcrtd_children 0
      logfile_rotate 10
      shutdown_lifetime 3 seconds
      # Allow local network(s) on interface(s)
      acl localnet src  192.168.10.0/24
      httpd_suppress_version_string on
      uri_whitespace strip
      
      # Break HTTP standard for flash videos. Keep them in cache even if asked not to.
      refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
      
      # Everything
      acl youtube dstdomain .youtube.com
      acl facebook dstdomain .facebook.com
      acl speedtest dstdomain .speedtest.net
      cache allow youtube
      cache allow facebook
      cache allow speedtest
      
      # Windows Update refresh_pattern
      range_offset_limit -1
      refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
      refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
      refresh_pattern -i my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
      
      # Symantec refresh_pattern
      range_offset_limit -1
      refresh_pattern liveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      refresh_pattern symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      
      # Avast refresh_pattern
      range_offset_limit -1
      refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-ims
      
      # Avira refresh_pattern
      range_offset_limit -1
      refresh_pattern personal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 10080 100% 43200 reload-into-ims
      
      cache_mem 512 MB
      maximum_object_size_in_memory 1024 KB
      memory_replacement_policy heap LFUDA
      cache_replacement_policy heap LFUDA
      cache_dir aufs /var/squid/cache 71680 16 256
      minimum_object_size 0 KB
      maximum_object_size 204800 KB
      offline_mode offcache_swap_low 90
      cache_swap_high 95
      
      # Add any of your own refresh_pattern entries above these.
      refresh_pattern ^ftp:    1440  20%  10080
      refresh_pattern ^gopher:  1440  0%  1440
      refresh_pattern -i (/cgi-bin/|\?) 0  0%  0
      refresh_pattern .    0  20%  4320
      
      # No redirector configured
      
      #Remote proxies
      
      # Setup some default acls
      acl allsrc src all
      acl localhost src 127.0.0.1/32
      acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 8000 3128 1025-65535 
      acl sslports port 443 563 8000 
      acl manager proto cache_object
      acl purge method PURGE
      acl connect method CONNECT
      
      # Define protocols used for redirects
      acl HTTP proto HTTP
      acl HTTPS proto HTTPS
      
      http_access allow manager localhost
      
      http_access deny manager
      http_access allow purge localhost
      http_access deny purge
      http_access deny !safeports
      http_access deny CONNECT !sslports
      
      # Always allow localhost connections
      http_access allow localhost
      
      quick_abort_min -1 KB
      quick_abort_max 0 KB
      request_body_max_size 0 KB
      delay_pools 1
      delay_class 1 2
      delay_parameters 1 -1/-1 -1/-1
      delay_initial_bucket_level 100
      # Throttle extensions matched in the url
      acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
      delay_access 1 allow throttle_exts
      delay_access 1 deny allsrc
      
      # Reverse Proxy settings
      
      # Custom options
      
      # Setup allowed acls
      # Allow local network(s) on interface(s)
      http_access allow localnet
      # Default block all to be sure
      http_access deny allsrc
      

      Hardware:
      Core 2 Duo 2.30 GHz
      4 GB DDR2 800 MHz
      500 GB SATA HDD
      2 NICs (LAN, OPT1)
      (WAN is Onboard)

      Also on How can I cache Speedtest.net and Facebook?

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