LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid : 1 proxy 3 cache (http://www.linuxquestions.org/questions/linux-networking-3/squid-1-proxy-3-cache-506713/)

bazet 12-01-2006 08:14 PM

Squid : 1 proxy 3 cache
 
Hi,

I've just installed Squid on a machine an it runs perfectly.

Here's my network design

192.168.10.115
-> the main Proxy IP ( 50 - 100 computer will be told to use this ip )
-> Only Proxy but do not cache
-> Only cache on other server ( 192.168.10.116,192.168.10.117 etc )
-> If received request from client, it will check the cached object from other server, if there's no cache obj exist, it will cache on the server )


192.168.10.116
- receive connection from 192.168.10.115 only
- cache server only ( storage farm )


192.168.10.117
- receive connection from 192.168.10.115 only
- cache server only ( storage farm )

192.168.10.118
- receive connection from 192.168.10.115 only
- cache server only ( storage farm )

The goal is so that box on 192.168.10.115 only proxy but do not cache and fill up all available storage in other server.

Can anyone give a simple squid.conf for each server ?

Thank you.

amitsharma_26 12-03-2006 04:03 PM

@192.168.10.115
cache_peer 192.168.10.116 parent 8080 3130 round-robing no-query no-delay
cache_peer 192.168.10.117 parent 8080 3130 round-robing no-query no-delay
cache_peer 192.168.10.118 parent 8080 3130 round-robing no-query no-delay
never_direct allow all

@192.168.10.116, .117, .118
Configure a normal squid proxy with regular configuration with also an acl to allow access only to 192.168.10.115

Things you should keep an eye of are
* you should not have never_direct allow all configuration at any of caching proxies.
* All the caching proxy should be able to resolve dns-queries & able to access internet on their own from their own boxes.

Thats it !

Got a query.. repost.


All times are GMT -5. The time now is 07:56 PM.