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

    Squid as cache to Windows Update

    Scheduled Pinned Locked Moved pfSense Packages
    10 Posts 3 Posters 11.2k 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.
    • H
      heitor.lessa
      last edited by

      I'd like if it possible to configure squid with above refresh_pattern on custom options:

      refresh_pattern update.microsoft.com/..(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      refresh_pattern windowsupdate.com/.
      .(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      refresh_pattern download.microsoft.com/..(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      refresh_pattern www.microsoft.com/.
      .(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
      refresh_pattern au.download.windowsupdate.com/.*.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims

      Cause in my squid (2.7) on pfsense seems not accept anyone commands from custom option, until more simple as "acl teste dstdomain ou url_regex" + http_access deny teste" not works.

      If anyone can help me… I'll appreciate.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It works for me (custom options)

        I have an article on the doc wiki that describes this process:

        http://doc.pfsense.org/index.php/Squid_Package_Tuning#Caching_Windows_Updates

        Make sure you end those custom options lines with a semicolon.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • H
          heitor.lessa
          last edited by

          It's strange, my squid not accept my custom options, but I include this as my normal squid running on Debian GNU/LINUX:

          refresh_pattern update.microsoft.com/..(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims;refresh_pattern windowsupdate.com/..(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims;
          refresh_pattern download.microsoft.com/..(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims;
          refresh_pattern www.microsoft.com/.
          .(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims;
          refresh_pattern au.download.windowsupdate.com/.*.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims;

          Current version is 1.2.3-RC1.

          But I'll try your advice.

          Thanks

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Something else to watch out for, I just double checked mine and I have no newlines in it, so it's all one line, with statements separated by semicolons, so it looks like this:

            refresh_pattern windowsupdate.com/..(cab|exe) 4320 100% 43200 reload-into-ims;refresh_pattern download.microsoft.com/..(cab|exe) 4320 100% 43200 reload-into-ims;refresh_pattern au.download.windowsupdate.com/..(cab|exe) 4320 100% 43200 reload-into-ims;refresh_pattern guru.avg.com/..(bin) 4320 100% 43200 reload-into-ims;range_offset_limit -1

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • H
              heitor.lessa
              last edited by

              oK.. thanks =).

              I´ll try tomorrow, but if I put the "wrong" way, the Pfsense fix automatical.

              But tomorrow I´ll test and post here again.

              Thanks one more time.

              1 Reply Last reply Reply Quote 0
              • H
                heitor.lessa
                last edited by

                Sorry about late.

                But when I´ll try to test I decided to upgrade to new version (1.2.3 RC-3), but now my pfsense cannot resolve names from internet more.

                dnsmasq[31484]: exiting on receipt of SIGTERM <- This message appears for me, and now I can´t connect to internet over Pfsense, I try to reinstall pfsense but not works.

                can you help me?

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Not sure what might be going on there, but that is unrelated to this thread. If you still need help, start a new thread in the appropriate board with a new subject.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • H
                    heitor.lessa
                    last edited by

                    Ok no problem.

                    I prefer not disturb some users with my doubt, I´ll try to reinstall old version.

                    Thanks for your information.

                    You can close this topic.

                    1 Reply Last reply Reply Quote 0
                    • C
                      cylent
                      last edited by

                      can the same be applied for youtube videos to cache flv videos?

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        @cylent:

                        can the same be applied for youtube videos to cache flv videos?

                        No, but there are some other docs out there which cover that. There is an add-on for squid that will cache videos. Some searching should turn it up.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

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