Re: [squid-users] Reverse proxy from LAN IP as well as domain

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 09 Jun 2010 00:28:04 +1200

Lyle wrote:
> Hi All,
> I've been happily using squid for almost a year. We'll, tbh haven't
> really touched it since getting the config working, but now I want to
> make a change I remember just how many config options there are :/
>
> Currently I've been using squid as a reverse proxy based on incoming
> domain, with parts like:-
>
> cache_peer 127.0.0.3 parent 80 0 no-query originserver name=IIS login=PASS
> cache_peer_domain IIS my.domain.com
>
> But now I want to set based on incoming IP, such as local machines off
> the network will call 192.168.1.5, but putting an IP instead of the
> domain name doesn't work. I've tried figuring the config but with no
> luck:( I think it's a simple one for people that know...
>

The wiki example config should be almost what you need:
http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator

It is an equivalent for what you have now, just convert your domain
match to a dstdomain ACL and add a src ACL as needed.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.4
Received on Tue Jun 08 2010 - 12:28:16 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 08 2010 - 12:00:05 MDT