Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Cache Windows update trouble

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Kriv0
      last edited by

      Hello. I'm very new at this pfsense so forgive me if I'm not 1337 :) I have this configuration in my squid preferences:

      refresh_pattern -i .microsoft.com/..(cab|exe|msi|msp|msu|msf|asf|wm[v|a]|dat|zip|dll) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;refresh_pattern -i .windowsupdate.com/..(cab|exe|msi|msp|msu|msf|asf|wm[v|a]|dat|zip|dll) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;range_offset_limit 100 MB;quick_abort_pct 60;

      I can see in the squid folder that it does cache the files, however when updating new computers they don't seem to read from the cache. What am I doing wrong??

      Thanks for any advice

      /Regards Kriv0

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        I am using this code:

        
        refresh_pattern -i .*microsoft\.com/.*\.(exe|zip|rar|cab|tar|bz|bz2|msi|gz|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
        refresh_pattern -i .*windowsupdate\.com/.*\.(exe|zip|rar|cab|tar|bz|bz2|msi|gz|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
        
        

        Perhaps you should add "windowsupdate.com"

        And you must allow in squid cach mngt that big files up to ~300MB for patches or up to 1.000MB for service packs are allowed to be cached on your HDD.
        So your "Hard disk cache size" must be big enough and your "Maximum object size".

        1 Reply Last reply Reply Quote 0
        • K
          Kriv0
          last edited by

          Thanks for the reply. I think that windowsupdate.com is in there, but the filesize was a bit low I guess. I had it at 1024… I changed that so will see what happens. There is an option for offline mode. What will happen if I check that box?

          /Regards Kriv0

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            Sorry I missed the line about windowsupdate.com ;)

            Don't know what happens when you use "offline_mode" - never used it.
            search squid-cache.org for more information.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.