Skip to content

Instantly share code, notes, and snippets.

@rigwild
Last active March 20, 2021 10:48
Show Gist options
  • Save rigwild/d345ca686c9f3b4892335c8f7e94f01c to your computer and use it in GitHub Desktop.
Save rigwild/d345ca686c9f3b4892335c8f7e94f01c to your computer and use it in GitHub Desktop.
Unauthenticated Squid proxy that only accepts local connections and chain with an authenticated proxy
# /etc/squid/squid.conf
# http_access allow all
http_port 59371
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
cache_peer 10.1.2.3 parent 8000 0 no-query default login=my_username:my_password
never_direct allow all
acl allowed_ip src localhost
http_access allow allowed_ip
http_access deny all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment