Skip to content

Instantly share code, notes, and snippets.

@Canx
Created May 15, 2018 11:54
Show Gist options
  • Select an option

  • Save Canx/44c1163fbf8f5ebe8b96d03af2518a88 to your computer and use it in GitHub Desktop.

Select an option

Save Canx/44c1163fbf8f5ebe8b96d03af2518a88 to your computer and use it in GitHub Desktop.
acl localnet src 172.28.128.0/23
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 172.28.128.6:3129
http_port 172.28.128.6:3128 intercept
cache_mem 16000 MB
maximum_object_size_in_memory 1000 MB
maximum_object_size 1000 MB
debug_options 9
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern . 0 40% 40320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment