Squid proxy won't cache anything (tcp_tunnel)

Squid on 18.04 server won't cache anything and the majority is tcp_tunnel/200 when I tail the access log and the cache log shows that nothing is cached. How can I get it to cache websites?

Squid Config:

http_port 3128
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
acl localnet src 192.168.0.0/24
acl localhost src 127.0.0.1
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl url dstdomain "/etc/squid/url"
acl key url_regex -i "/etc/squid/key"
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny url
http_access deny key
cache_mem 1024 MB
maximum_object_size_in_memory 100 MB
cache_replacement_policy heap GDSF
cache_dir ufs /etc/squid/cache 5120 16 256
maximum_object_size 100 MB
cache_swap_low 85
cache_swap_high 90
access_log /var/log/squid/access.log
half_closed_clients off
hosts_file /etc/hosts
memory_pools off
client_db off
coredump_dir /var/spool/squid 
4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like