Amos Jeffries-2 wrote
> On 20/08/2013 4:31 a.m., HillTopsGM wrote:
>> Hi All.
>> I've been doing lots of reading and I believe I am understanding the
>> basic
>> concept of how to use Squid.
>> /I've posted the hardware that I am using at the bottom of the post/.
>>
>> I have about 12 windows machines running at any one time and I was hoping
>> to
>> start using Squid to speed up the Windows updates in this environment -
>> *NOTHING ELSE FOR NOW*, as I don't want the cache to potentially
>> interfere
>> with the other work going on.
>> I will consider adding complexity as I go and continue to learn how to
>> use
>> it.
>>
>> For Practise I installed Squid using apt-get on a Linux Mint15
>> installation
>> - install went smoothly.
>>
>> I found the the *How do I make Windows Updates cache?* wiki here:
>> http://wiki.squid-cache.org/SquidFaq/WindowsUpdate
>> <http://wiki.squid-cache.org/SquidFaq/WindowsUpdate>
>>
>> It looks straight forward - just copy and past the appropriate settings
>> from
>> that page into the squid.conf file.
>>
>> What I am not clear on is how to NOT CACHE anything else?
>> Would someone be able to help me with that?
>
> The "cache" directive is what controls whether the reponse to a request
> will be stored.
> http://www.squid-cache.org/Doc/config/cache/
>
> Amos
Thanks for jumping in Amos.
Does this make sense then:
(START OF CODE FOR SQUID.CONF FILE)
#==========
#/Below is what I'd copy and past from the FAQ for windows updates:/
#==========
range_offset_limit -1
maximum_object_size 200 MB
quick_abort_min -1
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
4320 80% 43200 reload-into-ims
refresh_pattern -i
windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200
reload-into-ims
# Add one of these lines for each of the websites you want to cache.
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
4320 80% 43200 reload-into-ims
refresh_pattern -i
windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200
reload-into-ims
refresh_pattern -i
my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
4320 80% 43200 reload-into-ims
# DONT MODIFY THESE LINES
refresh_pattern \^ftp: 1440 20% 10080
refresh_pattern \^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#======================
#Then I'd add this to ONLY cache the windows updates:
#======================
acl mywindowsupdates dstdomain .my.windowsupdate.website.com
.windowsupdate.com .microsoft.com
cache allow mywindowsupdates
always_direct allow all
(END OF CODE FOR SQUID.CONF FILE)
Should I change the
cache allow mywindowsupdates
always_direct allow all
... to
cache allow mywindowsupdates
cache deny all
Thanks for the help
-- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Cache-Windows-Updates-ONLY-tp4661643p4661679.html Sent from the Squid - Users mailing list archive at Nabble.com.Received on Wed Aug 21 2013 - 00:50:02 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 21 2013 - 12:00:43 MDT