There are two "par­ent" prox­ies in this file which this
per­son­al proxy can ac­cess. Ob­vi­ous­ly,
re­place user­name and pass­word with your own
au­then­ti­ca­tion in­for­ma­tion. Al­so, don't
for­get to change cache_ef­fec­tive_user and
cache_ef­fec­tive_group to your lik­ing or your dis­tro.
Change the cache_re­place­ment_pol­i­cy to fit your caching
needs, and fi­nal­ly, make sure to ed­it the acl
lo­cal-servers to spec­i­fy which servers you do not want to
proxy.

cache_ef­fec­tive_user proxy # Ubun­tu-speci­fic?
cache_ef­fec­tive_group proxy # Ubun­tu-speci­fic?

http_port 3128
http_ac­cess al­low all

cache_peer prx1 par­ent 3128 3190 no-query login=user­name:pass

cache_peer prx2 par­ent 3128 3190 no-query login=user­name:pass
cache_peer_ac­cess prx1 al­low all
cache_peer_ac­cess prx2 al­low all

hier­ar­chy_sto­plist cgi-bin ?

cache_mem 64 MB # How much mem­o­ry Squid us­es for cache.

                 # Make low­er if you have less mem­o­ry
max­i­mum_ob­ject_size_in_mem­o­ry 64 KB # Make low­er
if you have less mem­o­ry

cache_re­place­ment_pol­i­cy heap LFU­DA
cache_dir aufs /var/spool/squid3 6000 16 256

max­i­mum_ob­ject_size 16384 KB

ac­cess_log /var/log/squid3/ac­cess.log squid

shut­down_life­time 1 sec­ond

acl lo­cal-servers dst 127.0.0.1 192.168.1.0/24
nev­er_di­rect deny lo­cal-servers

nev­er_di­rect al­low all

Also ref-:

http://fedora.co.in/2008/03/05/setting-up-a-hierarchical-caching-proxy-s\
erver-with-squid-on-fedora

B.Sadhiq


Reply via email to