我想在Windows版Docker的容器中启动proxy(squid3)。
我已经在squid.conf中配置了“ tcp_outgoing_address”。
但是效果不好。
是否不可能将间接网络设置为“ tcp_outgoing_address”?
MyPC(http://localhost:3128)-->容器(squid [tcp_outgoing_address = Global_IP1]) -> MyRouter(网关192.168.1.254)->(Internet)-> Proxy_Z(Global_IP1)-> WebSite_X(仅来自Proxy_Z的Global_IP1)
容器是CentOS。它可以通过gateway_192.168.1.254使用Internet。
虽然我可以使用Proxy_Z目录,但是监视WebSite_X并没有用。
我想通过容器中的代理使用(监视)WebSite_X。
这是鱿鱼日志。
2018/08/05 14:43:07 kid1| commBind: Cannot bind socket FD 12 to xxx.xxx.xxx.xxx: (99) Cannot assign requested address
xxx.xxx.xxx.xxx是Proxy_Z(IP1_Global)。