现在有一个特殊的用户,想要在用户的networking中configuration另一个鱿鱼。 所以这个代理想通过代理代理configuration访问互联网。
目前它不起作用。
所以这里是一个问题:什么是我的squid.conf允许IP使用我的squid作为上游代理的configuration?
假设你有两个代理:
______ _________ __________
| 客户端| - > | 代理B | - > | 代理A | - > {internet}
| ________ | | _________ | | _________ | {} __________
端口端口
8000 8080
代理服务器A的configuration已经有效,所以现在我们将忽略它。 区别在于代理B必须configuration为将所有请求发送给代理,而不是互联网。 那么如何在Squid中为代理Bconfiguration呢?
调查cache_peerconfiguration指令。
类似于(对于代理B):
http_port 8000 cache_peer proxy_A parent 8080 0无查询
在一个代理(客户端)上,您需要定义cache_peer 。
在另一个代理(服务器端)上,您需要定义相应的acl行以允许代理IP使用此代理。