The upper layer proxy Squid uses other proxy servers
Summary:When we visit foreign websites slowly, we can set up a proxy to access them. Can our own proxy server also set up someone else's proxy to access f…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
When we visit foreign websites slowly, we can set up a proxy to access them. Can our own proxy server also set up someone else's proxy to access foreign websites? The answer is affirmative.
For example, proxy proxy1.cnlinux.net can access foreign websites at a faster speed, and we also access it relatively quickly, so we use it as our upper level proxy to access foreign websites.
We need to add the following parameters in squid.conf:
There are mainly two categories: parent at the upper level and sibling at the same level. Here, we mainly introduce the upper level proxy, which is parent. If you need to set up a proxy server cluster, sibling can be used, and we will not discuss it here.
Other parameters include:
Proxy only: Only requests data from the upper level proxy and does not cache it to the local proxy.
Weight=n: Proportion. When we set up multiple upper level agents, the functions of these agents are the same. We can determine which upper level agent is more important by setting this option. The larger n, the more important it is.
No query: When using the pruning category, when requesting information from a proxy at the same level, an ICP request will be sent to it. You can use no query to cancel the ICP request. Generally, when we request information from an upper level proxy, we do not need to send an ICP packet to reduce traffic.
Default: means to set this proxy as the default proxy
No netdb exchange: Refers to the request not to send imcp packets to the proxy.
No digest: Indicates not recording requests submitted to the upper level proxy.
#Upper level proxy settings
cache_peer proxy1.cnlinux.net parent 3128 3130 no-digest no-netdb-exchange
#Set access rules, which can be using domain names or IP addresses
Acl usa dstdomain. com. us # website for the United States. com. us
ACL USAIP DST 18.0.0.0/8 # Partial IP Segment in the United States
(T002)
#Release prohibition rules
Cache_peer_access proxy1.cnlinux.net allow usa # Allow usa rules to use this upper layer proxy
cache_peer_access proxy1.cnlinux.net deny ! USA # prohibits all non USA rules from using this upper layer proxy
cache_peer_access proxy1.cnlinux.net allow usaip
cache_peer_access proxy1.cnlinux.net deny ! usaip
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

