Re: [squid-users] IP-to-Country csv file and conditionnal relay.

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Mon, 21 Apr 2008 13:18:31 +1000

Hi,

On Mon, 2008-04-21 at 11:09 +0800, Julien MARY wrote:
> Hi,
>
> After have googled a lot concerning my issue, I'm coming here.
>
> I'm using two servers, one is a transparent proxy, sitting in office in
> China. The other one is in another asian country.
> I have set up and ssh tunnel between the two computers in order to
> connect the two proxies in a secured way.
>
> What I have set up presently is :
> ---
> cache_peer localhost parent 8028 7 no-query default
> ---
>
> Where the 8028 is binded with the 3128 port on the remote proxy.
>
> My problem is that users in office can' t access to web sites in China
> with good speed. I want to find a way to enable the relaying only if the
> ip of the visited web site is not located in China.
>
> And I didn't figure out any way to do this.
>
> Somebody might help ?

Look at "always_direct". Create an acl for the Chinese servers and then
use "always_direct permit ..."

Colin

-- 
Colin Campbell
Unix Support/Postmaster/Hostmaster
Citec
+61 7 3227 6334
Received on Tue Apr 22 2008 - 13:20:21 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT