Skip to content

Instantly share code, notes, and snippets.

@amgohan
Created December 21, 2022 06:36
Show Gist options
  • Save amgohan/d0c1bc55748bfc440b27fde7eadfa01d to your computer and use it in GitHub Desktop.
Save amgohan/d0c1bc55748bfc440b27fde7eadfa01d to your computer and use it in GitHub Desktop.
cache_mem 0
cache deny all
max_filedescriptors 524288
acl SSL_ports port 443 444 563
acl netgiro_ports port 4312 5312
acl Safe_ports port 80 # http
acl Safe_ports port 443 # https
acl Safe_ports port 21 # ftp
acl ftp_access proto FTP
# debug_options ALL,0 : Only critical issues preventing squid to run.
# debug_options ALL,1 : Important issues which are not causing critical problems to squid, but may be fatal to certain client requests.
debug_options ALL,1
# To enable coarse ACL debugging, uncomment the following line:
# debug_options ALL,1 33,2
# To enable fine-grained ACL debugging, uncomment the following line:
# debug_options ALL,1 33,2 28,9
# After that, restart/reload squid
append_domain .tm.tmcs
acl localNetwork src 192.168.0.0/16
acl google dstdomain .google.com
http_access allow localNetwork google
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment