我正在尝试设置一个squid代理,它将在一个IPv4上跨一系列端口接受多个入站连接,并为每个端口连接在一个唯一的IPv6地址上。
我已经命名了每个端口连接,并根据连接名称指定了一个ACL,然后我尝试为每个端口定义一个传出IPv6。下面的脚本起作用,因为它接受不同端口上的连接,并通过IPv6输出,因此所有出站连接都使用相同的IPv6 ( user5 ),尽管每个用户定义的ipv6不同--即使我注释掉了squid.conf的user5 IPv6,它仍然用于出站连接。
有人能看到这里出了什么问题吗?(在Centos 6 64位上使用Squid 3.1.1 )
## declare an acl that is true for all ipv6 destinations
acl to_ipv6 dst ipv6
##tell Squid to listen on sequential ports and to designate a name for each inbound connection.
http_port 241.xxx.xxx.101:3128 name=3128
http_port 241.xxx.xxx.101:3129 name=3129
http_port 241.xxx.xxx.101:3130 name=3130
http_port 241.xxx.xxx.101:3131 name=3131
http_port 241.xxx.xxx.101:3132 name=3132
## designate acl based on inbound connection name
acl user1 myportname 3128
acl user2 myportname 3129
acl user3 myportname 3130
acl user4 myportname 3131
acl user5 myportname 3132
## define outgoing IPv6 per user
tcp_outgoing_address [2001:::::::ipv61] user1
tcp_outgoing_address [2001:::::::ipv62] user2
tcp_outgoing_address [2001:::::::ipv63] user3
tcp_outgoing_address [2001:::::::ipv64] user4
##tcp_outgoing_address [2001:::::ipv65] user5
##this last IPv6 always gets used for all outbound connections, even if commented out发布于 2013-05-22 11:56:35
在Squid3.1中,您需要在每一行to_ipv6行之后使用tcp_outgoing_address指令。如果升级到3.2,就不会遇到这个问题。
https://serverfault.com/questions/509785
复制相似问题