Search squid archive

Re: Reverse proxy from LAN IP as well as domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux