I followed this link to a T and that was over a week ago but I still don't think my pfSense box is caching anything at all.
squid.conf:
After over a week, here is the output of Store Directory Stats in Cache Manager:
Am I missing something? I'm pretty new to pfSense. I used Untangle previously and this was all pretty painless.
squid.conf:
Code:
# Do not edit manually !
http_port 192.168.2.1:3128
icp_port 0
pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/local/etc/squid/errors/English
icon_directory /usr/local/etc/squid/icons
visible_hostname pfSense
cache_mgr [email protected]
access_log /dev/null
cache_log /var/squid/logs/cache.log
cache_store_log none
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src 192.168.2.0/255.255.255.0
uri_whitespace strip
cache_mem 1024 MB
maximum_object_size_in_memory 1024 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir ufs /var/squid/cache 15000 16 256
minimum_object_size 0 KB
maximum_object_size 1048576 KB
offline_mode off
cache_swap_low 90
cache_swap_high 95
# No redirector configured
# Setup some default acls
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 1025-65535
acl sslports port 443 563
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl dynamic urlpath_regex cgi-bin \?
cache deny dynamic
http_access allow manager localhost
# Allow external cache managers
acl ext_manager_1 src 192.168.2.1
http_access allow manager ext_manager_1
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
request_body_max_size 0 KB
reply_body_max_size 0 deny all
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_initial_bucket_level 100
delay_access 1 allow all
# Custom options
refresh_pattern ([^.]+.|)(download|(windows|)update|).(microsoft.|)com/.*\.(cab|exe|msi|msp) 4320 100% 43200 reload-into-ims
range_offset_limit -1
# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow localnet
# Default block all to be sure
http_access deny all
After over a week, here is the output of Store Directory Stats in Cache Manager:
Code:
Store Directory Statistics:
Store Entries : 52
Maximum Swap Size : 15360000 KB
Current Store Swap Size: 0 KB
Current Capacity : 0% used, 100% free
Store Directory #0 (ufs): /var/squid/cache
FS Block Size 2048 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 15360000 KB
Current Size: 0 KB
Percent Used: 0.00%
Current load metric: 500 / 1000
Filemap bits in use: 0 of 16384 (0%)
Filesystem Space in use: 720250/143243122 KB (1%)
Filesystem Inodes in use: 33055/18535422 (0%)
Flags:
Accepted object sizes: 0 - (unlimited) bytes
Removal policy: heap
Am I missing something? I'm pretty new to pfSense. I used Untangle previously and this was all pretty painless.