[squid-users] Cache LAN and VLAN webservers

From: Anwar Ahmad <anwar.ahmad@dont-contact.us>
Date: Mon, 24 Oct 2005 15:57:04 +0800

Hi All,

I was wondering whether it is possible to cache local LAN & DMZ
servers... and have them accessible to VLAN computers.

Basically I my LAN is 192.168.12.0 and the squidbox has an IP from this
subnet. Basically I want to cache our webserver thats on the LAN (same
subnet) and DMZ (192.168.5.0). This will then be used by those who are
connected to our VLAN on the 172.21.100.0 subnet.

Currently squid can't cache servers. When I set my browser to
192.168.128.5 (our intranet server) I get an error It can't locate the
server. It seems to only cache external web (internet). I've read how
you're supposed to set direct_access for local server but lets say I
want to cache local servers. How do I do this. I pasted my squid.conf
below. I haven't really changed much as I'm not too sure about which
line needs to be changed.

Any help is greatly appreciated.

Thanks!
-------
#squid.conf
http_port 3128
cache_dir ufs /u01/squid 8000 16 256
cache_effective_group proxy
cache_effective_group proxy
acl our_networks src 192.168.12.0/24
http_access allow our_networks
ftp_user squid@net-linx.com
cache_access_log none
cache_store_log none
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
cache_mgr anwar.ahmad@net-linx.com
httpd_accel_port 80
coredump_dir /var/spool/squid
Received on Mon Oct 24 2005 - 01:54:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:05 MST