【问题标题】:squid proxy with multiple outgoing IP address具有多个传出 IP 地址的 squid 代理
【发布时间】:2016-12-08 09:00:41
【问题描述】:

我已经安装了 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

【问题讨论】:

    标签: linux ubuntu proxy reverse-proxy squid


    【解决方案1】:

    我像下面这样解决了它,但在此之前我将 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
    

    【讨论】:

    • 对 Squid-3.3 中 acl 的更改:myportmyip ACL 类型分别替换为 localportlocalip
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    • 2012-02-05
    相关资源
    最近更新 更多