複数の IPv4 と IPv6 を備えた Squid3 プロキシ

複数の IPv4 と IPv6 を備えた Squid3 プロキシ

この設定では、Squid 3.5 を ip1 以外の IP に応答させることができません。問題は、複数の IP を割り当てる方法ではなく、IPv6 の使用にあると思います。ただし、テストに使用できる IPv4 は 1 つしかありません。

http_port 8121
cache deny all
forwarded_for delete


acl to_ipv6 dst ipv6
http_access allow to_ipv6 !all
tcp_outgoing_address 216.144.232.42 !to_ipv6


acl ip1 myip 216.144.232.**
tcp_outgoing_address 216.144.232.** ip1
acl ip2 myip 2607:fcd0:106:3219::ad76:****
tcp_outgoing_address 2607:fcd0:106:3219::ad76:**** ip 2
acl ip3 myip 2607:fcd0:106:3219::e296:****
tcp_outgoing_address 2607:fcd0:106:3219::e296:**** ip 3


via off
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
http_access deny all

関連情報