« Return to Thread: SQUID port to port

Re: SQUID port to port

by elsergio :: Rate this Message:

Reply to Author | View in Thread

Henrik Nordstrom-5 wrote:
On mån, 2008-07-21 at 15:19 -0700, elsergio wrote:
> Hi,
>
> Here comes another squid question:
>
> It is possible to have a squid proxy working like this:
>
> listening on port 80 and forward connection to ip1 on port 8080
> listening on port 81 and forward connection to ip2 on port 8181

Yes. That's a reverse proxy with multiple ports and multiple backend
servers, using cache_peer_access to select what to sent to each.

Regards
Henrik

 
Hi Henrik,

Let's see if I can figure out the configuration:

http_port 80 81   #to make squid listen to the desired ports

cache_peer ip1 parent 8080 0 no-query origin_server name DS1
cache_peer ip2 parent 8181 0 no-query origin_server name DS2

I cannot find out how to connect origin port with destination port. How is the good use of the cache_peer for this purpose?

Thanks again. Best regards,

Sergio


 « Return to Thread: SQUID port to port