I would like to setup a proxy that listens for multiple ports and each port forwards the requests to different proxies, for example:
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
Is this possible to implement with squid?
I have configured this so far:
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
I don't know how to handle the redirection