Created
February 19, 2022 18:41
-
-
Save pichuang/201760a9af08deb8afe1eeee71a674d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -x http://squid.pichuang.local:3128 -L http://www.google.com.tw