Skip to content

Instantly share code, notes, and snippets.

@pichuang
Created February 19, 2022 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pichuang/201760a9af08deb8afe1eeee71a674d8 to your computer and use it in GitHub Desktop.
Save pichuang/201760a9af08deb8afe1eeee71a674d8 to your computer and use it in GitHub Desktop.
$ cat squid.conf
#
# Recommended minimum configuration:
#
# allow all requests
acl all src 0.0.0.0/0
http_access allow all
# And finally deny all other access to this proxy
http_access deny all
# Squid normally listens to port 3128
http_port 3128
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 10000 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
debug_options ALL,1 33,2 28,9
#
# 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
@pichuang
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment