Line 35: |
Line 35: |
| ====Caching WindowsUpdate download (and others too)==== | | ====Caching WindowsUpdate download (and others too)==== |
| | | |
− | Add this on file /etc/squid/squid.conf '''( This must be done thru templates! remember to put instructions here )'''
| + | From this post |
| + | * http://forums.contribs.org/index.php?topic=34812.0 |
| + | and |
| + | * http://forums.contribs.org/index.php?topic=40391.0;topicseen |
| | | |
| + | Create the template fragment |
| + | |
| + | pico /etc/e-smith/templates/etc/squid/squid.conf/05refreshpattern |
| + | |
| + | paste lines below |
| | | |
− | ******************************************************
| |
| hierarchy_stoplist cgi-bin ? | | hierarchy_stoplist cgi-bin ? |
| acl QUERY urlpath_regex cgi-bin \? | | acl QUERY urlpath_regex cgi-bin \? |
Line 46: |
Line 53: |
| cache_dir ufs /var/spool/squid 3000 16 256 | | cache_dir ufs /var/spool/squid 3000 16 256 |
| | | |
− | # various windows versions | + | # caching windows update various windows versions |
| refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims | | refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims |
| refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims | | refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims |
Line 52: |
Line 59: |
| refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims | | refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims |
| refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims | | refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims |
− | ************************************************************** | + | |
| + | # add any site you want to cache below |
| + | |
| | | |
| Execute: | | Execute: |
| + | expand-template /etc/squid/squid.conf |
| squid -k reconfigure | | squid -k reconfigure |
| | | |
| ---- | | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |