2016-12-08 20 views
1

나는 여러 개의 공개 발신 주소로 모든 나가는 요청을 만들기 위해 squid 프록시 서버를 설치했습니다. 아래는 나의 구성이지만, 브라우저 내부에 프록시 서버의 IP 주소를 설정하면 Google IP로 google에 설정 한 프록시 서버의 IP 주소 만 브라우저에 설정합니다. 아래는 나의 오징어 구성입니다.여러 발신 IP 주소를 가진 squid 프록시

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 

답변

0

아래에서와 같이 해결했지만 그 전에는 서버 인터페이스에 가상으로 가상 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