|
|
SysAdm /
Install Squid http proxy cacheEven if the UJ network has a transparent http proxy cache, we still want to have a local proxy because the generic proxy is optimised for web pages, so it does not cache large objects, like data files or install packages. Actually, I've done this much later in the process, but it would be better to do it early. [ADM@gridvm ~]$ sudo yum install squid [ADM@gridvm ~]$ mkdir /dsk2/SQUID/ [ADM@gridvm ~]$ sudo chown squid.squid /dsk2/SQUID/ squid.conf http_port 3128 maximum_object_size 200 MB cache_mem 128 MB cache_replacement_policy heap LFUDA cache_dir aufs /dsk2/SQUID 4000 16 256 acl DMZ src 152.106.18.0/24 acl WNs src 10.0.0.0/24 http_access allow DMZ http_access allow WNs # override expire=-1 for software repositories refresh_pattern \.pacman$ 360 20% 1440 override-expire refresh_pattern repodata/.*\.xml.*$ 60 20% 1440 override-expire refresh_pattern .*\.rpm$ 360 20% 1440 override-expire # complete transfers (so that header downloads get the full rpm) quick_abort_min -1 KB quick_abort_max 16 MB quick_abort_pct 50 see http://www.squid-cache.org/Doc/config/refresh_pattern/ testing [ADM@gridvm squid]$ sudo service squid start [ADM@gridvm squid]$ export http_proxy=http://gridvm:3128 [ADM@gridvm squid]$ curl http://www.apple.com < Introduction | Install Trail | Install Cobbler > |