2017-08-30 2 views
1

ich einen Proxy einrichten möchten, die für mehrere Ports und jeder Port leitet die Anfragen an verschiedene Proxies, zum Beispiel hört:Squid - auf mehrere Ports Hören und zu anderen Proxy weiterleiten

LISTEN   FORWARD TO 
1.2.3.4:3128 -> 5.6.7.8:3128 
1.2.3.4:3129 -> 5.6.7.9:3128 
1.2.3.4:3130 -> 5.6.7.10:3128 

Ist das möglich mit Tintenfisch umsetzen?

Ich habe dies bisher konfiguriert:

cache_peer 5.6.7.8 parent 3128 0000 default no-query no-digest 
cache_peer 5.6.7.9 parent 3128 0000 default no-query no-digest 
cache_peer 5.6.7.10 parent 3128 0000 default no-query no-digest 

http_port 3128 
http_port 3129 
http_port 3130 

Ich weiß nicht, wie die Umleitung

Antwort

1

Sie cache_peer_access fehlen zu handhaben und die acl.

Versuchen Sie, diese config:

acl port_1 localport 3128 
acl port_2 localport 3129 
acl port_3 localport 3130 # I woudn't use this one, This is reserved for ICP 

http_port 3128 
http_port 3129 
http_port 3130 

cache_peer 5.6.7.8 parent 3128 0 name=host_1 
cache_peer 5.6.7.9 parent 3128 0 name=host_2 
cache_peer 5.6.7.10 parent 3128 0 name=host_3 

cache_peer_access host_1 allow port_1 
cache_peer_access host_1 allow port_2 
cache_peer_access host_1 allow port_3 

never_direct allow all # Tells your squid to never use its own internet connection to process the requests. if your parent proxy won't work it will return Error. 

GL!

Verwandte Themen