我试图用一个IPv4 IP连接到Squid,并且基于我连接的端口,我希望Squid使用不同的IPv6 IP进行连接。
我确实遇到了ServerFault上的另一篇文章,但是OP仍然有问题,我正在使用与OP相似的configuration文件,但仍然面临问题
Squid代理:如何将入站IPv4 +端口连接到出站IPv6
以下是我的configuration文件
acl SSL_ports port 443 acl Safe_ports port 80 acl Safe_ports port 21 acl Safe_ports port 443 acl Safe_ports port 70 acl Safe_ports port 210 acl Safe_ports port 1025-65535 acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl CONNECT method CONNECT http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost manager http_access deny manager http_access allow localhost #http_access deny all http_port 3128 coredump_dir /var/spool/squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 # Allow all machines to all sites http_access allow all #Privacy Things via off forwarded_for off follow_x_forwarded_for deny all ## 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 2000:3c03:e000:25f::1:0 user1 tcp_outgoing_address 2000:3c03:e000:25f::1:1 user2 tcp_outgoing_address 2000:3c03:e000:25f::1:2 user3 tcp_outgoing_address 2000:3c03:e000:25f::1:3 user4 tcp_outgoing_address 2000:3c03:e000:25f::1:4 user5
我面对的问题是,我只能使用代理端口3128,它代理它为“2000:3c03:e000:25f :: 1:0”应该。 但是,如果我使用端口3129,那么我无法连接到代理。