Nas*_*afa 2 linux ubuntu proxy reverse-proxy squid
我已经安装了鱿鱼代理服务器来使用多个公共传出地址发出所有传出请求。下面是我的配置,但是当我在浏览器中设置代理服务器的IP地址时,我用谷歌搜索我的IP,它只给了我在浏览器上设置的代理服务器的IP地址。下面是我的鱿鱼配置
http_access allow all
visible_hostname zeyton
#acl ip1 myip 51.x.x.x1
#acl ip2 myip 51.x.x.x2
#acl ip3 myip 51.x.x.x3
#acl ip4 myip 51.x.x.x4
#acl ip4 myip 51.x.x.x5
acl abc src 192.168.0.0/16
#acl xyz 10.0.2.0/24
#tcp_outgoing_address 51.x.x.x1 ip1
#tcp_outgoing_address 51.x.x.x2 ip2
#tcp_outgoing_address 51.x.x.x3 ip3
#tcp_outgoing_address 51.x.x.x4 ip4
#tcp_outgoing_address 51.x.x.x5 ip4
tcp_outgoing_address 51.x.x.x1 abc
tcp_outgoing_address 51.x.x.x2 abc
tcp_outgoing_address 51.x.x.x3 abc
tcp_outgoing_address 51.x.x.x4 abc
Run Code Online (Sandbox Code Playgroud)
我像下面这样解决了这个问题,但在此之前我将IP地址池虚拟地分配给了服务器的接口。
http_access allow all
visible_hostname zeyton
acl ip1 myip 51.x.x.x1
acl ip2 myip 51.x.x.x2
acl ip3 myip 51.x.x.x3
acl ip4 myip 51.x.x.x4
acl ip4 myip 51.x.x.x5
tcp_outgoing_address 51.x.x.x1 ip1
tcp_outgoing_address 51.x.x.x2 ip2
tcp_outgoing_address 51.x.x.x3 ip3
tcp_outgoing_address 51.x.x.x4 ip4
tcp_outgoing_address 51.x.x.x5 ip4
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8121 次 |
| 最近记录: |