Skip to content

Instantly share code, notes, and snippets.

@HouzuoGuo
Created November 29, 2018 13:13
Show Gist options
  • Save HouzuoGuo/67f054aac42bc05df2bcc7dbb7bfbfe7 to your computer and use it in GitHub Desktop.
Save HouzuoGuo/67f054aac42bc05df2bcc7dbb7bfbfe7 to your computer and use it in GitHub Desktop.
Forward HTTP traffic from intermediate Squid proxy to an exit Squid proxy
Intermediate proxy, the initial receipient of HTTP traffic:
coredump_dir /var/spool/squid
pid_filename /var/run/squid-http.pid
access_log /var/log/squid-http.log
cache_log /var/log/squid-http.log
via off
cache_peer 127.0.0.1 parent 13129 0 default no-query no-digest
never_direct allow all
http_access allow all
http_port 3129
Exit proxy, the final recipient Final recipient of HTTP traffic:
coredump_dir /var/spool/squid
pid_filename /var/run/squid-up-http.pid
access_log /var/log/squid-up-http.log
cache_log /var/log/squid-up-http.log
http_access allow all
http_port 13129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment