Re: [squid-users] SQUID port to port

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 22 Jul 2008 23:44:15 +1200

elsergio wrote:
>
> 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

One per line.

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

name=DS1 ,etc. but otherwise yes.

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

cache_peer_access and some ACL's. Probably the myport or portname ACL.

http://www.squid-cache.org/Versions/v2/2.7/cfgman/cache_peer_access.html
http://www.squid-cache.org/Versions/v2/2.7/cfgman/acl.html

Amos

-- 
Please use Squid 2.7.STABLE3 or 3.0.STABLE8
Received on Tue Jul 22 2008 - 11:44:17 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 12:00:04 MDT