Squid
을 하나의 디지털 오션 우분투 시스템에 설치했습니다.오징어 프록시 : 요청을 보내는 데 ipv6 주소를 사용하는 방법
내가 원하는 것은 다음과 같습니다. ipv4
주소를이 프록시 서버에 보내고 squid.conf
에 구성된 iPv6
주소를 선택하여 사용해야합니다. conf 파일에 2 ipv6
개의 주소를 추가했습니다.
주소를 ipv6으로 지정하여 다음 명령을 실행하면 정상적으로 작동합니다.
curl -H 'Cache-Control: no-cache' --proxy localhost:3128 [2400:xxx:x:xx::xxx:a001]
즉, 그것은 conf의 파일에서 임의의 ipv6
주소를 선택하고 해당 IP 주소를 통해 요청을 보냅니다.
나는 그것 그것의 conf의 파일에 지정된 IPv6의 주소를 따기하지,
curl -H 'Cache-Control: no-cache' --proxy localhost:3128 34.xxx.xxx.148
즉 작동하지 않는,은 IPv4 주소를 지정하여 다음 명령을 시도하십시오. 대신에 서버 공용 IP를 사용합니다.
내 /etc/squid/squid.conf
파일 내용은 다음과 같습니다.
acl one_fourth_3 random 1/2
acl one_fourth_4 random 1/1
tcp_outgoing_address 2604:xxxx:xxx:xxx::xx:a001 one_fourth_3
tcp_outgoing_address 2604:xxxx:xxx:xxx::xx:a002 one_fourth_4
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 allow all
http_access deny all
http_port 3128
내 오징어 버전이
Squid Cache: Version 3.5.12
Service Name: squid