Re: [squid-users] Redirect certain sites through parent proxy?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 07 Oct 2010 18:59:10 +1300

On 07/10/10 15:27, Daniel Herbert-Ward wrote:
>
> On 7/10/2010, at 2:57 PM, Amos Jeffries wrote:
>
>> On Thu, 7 Oct 2010 13:17:33 +1300, Daniel Herbert-Ward
>> <D.Herbert.Ward_at_Orcon.net.nz> wrote:
>>> On 7/10/2010, at 1:15 PM, Amos Jeffries wrote:
>>>
>>>> On Thu, 7 Oct 2010 13:06:35 +1300, Daniel Herbert-Ward
>>>> <D.Herbert.Ward_at_Orcon.net.nz> wrote:
>>>>> On 7/10/2010, at 11:46 AM, Amos Jeffries wrote:
>>>>>
>>>>>> On Thu, 7 Oct 2010 02:34:08 +1300, Daniel Herbert-Ward
>>>>>> <D.Herbert.Ward_at_Orcon.net.nz> wrote:
>>>>>>> Thank you to all who have helped me in the past. Helmut Hullen and
>>>> Giles
>>>>>>> Coochey. but one more thing, I would like to redirect the website
>>>>>>> "www.whatismyip.com" through another proxy, for testing purposes.
>>>>>>>
>>>>>>> the parent proxy server is 206.225.95.146:58258
>>>>>>>
>>>>>>> I have got this: cache_peer 172.16.x.x(IP of another Server) parent
>>>>>>> 3128(SQUID PORT) 3130(ICP_PORT) cache_peer_domain example.com
>>>>>>>
>>>>>>> But how is that meant to work?? I can't figure it out! D:
>>>>>>
>>>>>> http://www.squid-cache.org/Doc/config/cache_peer/
>>>>>>
>>>>>> Parent Proxy: 206.225.95.146:58258
>>>>>>
>>>>>> squid.conf: cache_peer 206.225.95.146 parent 58258 3130
>>>>>>
>>>>>> (3130 may be 0 if they do not support ICP requests from your Squid.)
>>>>>>
>>>>>> Amos
>>>>>
>>>>> Thank you Amos, But I only want to send certain url requests through
>> the
>>>>> parent. So when someone accesses whatismyip.com, it is being sent
>>>> through
>>>>> the parent proxy.
>>>>>
>>>>
>>>> Thats what the cache_peer_domain / cache_peer_access do. only requests
>>>> which match their criteria lists may get passed to the peer.
>>>>
>>>> Amos
>>>>
>>>
>>> So what would I put into Squid?
>>
>> The cache_peer* parts of this:
>> http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator
>>
>> Amos
>
>
> No no no. What I am trying to achieve is this:
>
> When someone tries to go to www.whatismyip.com through MY proxy, without them knowing, they will be viewing that ONE! site through another proxy which is in the U.S because MY proxy would have directed them through that proxy in the background.
>
> How can I set this up. What will I have to EXACTLY put into the squid configuration???????????

Sorry if I've confused you. I pointed at the Accel config because it is
the only one we have that shows the exact cache_peer* lines you are
wanting. The Features/Hierarchy page has a fuller explanation with
complex configs.

When you follow that pages instructions you get this:

   cache_peer 206.225.95.146 parent 58258 3130
   acl wmip dstdomain .whatismyip.com
   http_access allow wmip
   cache_peer_access allow wmip
   cache_peer_access deny all

Which, as the page explains means: allow whatismyip.com and its
subdomains to be accessed via this proxy, send it to 206.225.95.146 on
port 58258. Don't send anything else there.

Extra optional part to block direct requests to the Internet for that
site: never_direct allow wmip

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.8
   Beta testers wanted for 3.2.0.2
Received on Thu Oct 07 2010 - 05:59:15 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 09 2010 - 12:00:03 MDT