Squid Cache refresh_pattern for Antivirus Windows Updates

Squid Cache refresh_pattern configuration for Antivirus Updates for AVG Kaspersky Norton Avira Trend Micro Microsoft updates

Squid refresh_pattern for AVG Kaspersky

To cache the Antivirus update files in squid cache, you have to add the below refresh rules in squid config file.
So that squid will prevent the users downloading directly from net and it will allow users to download the updates from squid cache.

#vim /etc/squid/squid.conf

For AVG add the below lines:

refresh_pattern guru.avg.com/.*.(bin) 4320 100% 43200 reload-into-ims;
refresh_pattern bguru.avg.com/.*.(bin) 4320 100% 43200 reload-into-ims;
refresh_pattern af.avg.com/.*.(bin) 4320 100% 43200 reload-into-ims;



For other anit virus updates, you can replace the download URL with that particular url.

Squid cache for Microsoft updates

To cache Microsoft updates, add the below lines in the squid config file

refresh_pattern mbam-cdn.malwarebytes.org/.*.(exe) 4320 100% 43200 reload-into-ims;
refresh_pattern data-cdn.mbamupdates.com/.*.(ref) 4320 100% 43200 reload-into-ims;