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

    Squid Cache management on Embedded?

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 3 Posters 2.3k 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.
    • J
      joebobfrank
      last edited by

      I am using a Alix board with a CF card. The "Hard disk cache system" has been set to "null" to not use storage.
      I am at 83% ram usage with 256mb total.

      What values should be set for

      Hard disk location? (Can I even write to the CF card or does it stay in memory since I set it to "null"?)
      Memory cache size?
      Minimum object size?
      Maximum object size?
      Maximum object size in RAM?

      This is a bit confusing to me.

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

        If it's set to null, then it does not setup a cache on the CF. You probably want to set the other cache sizes small also, if not 0. You can't effectively use squid to cache on NanoBSD, it's only real use there is for access control with things like squidGuard. So setting those value very low is recommended.

        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
        • J
          joebobfrank
          last edited by

          Thanks for the info. That was very useful.

          How about using Squid and Squidguard to log the URLs websites being accessed? Will this work? Do the logs get written to the CF card?

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

            The logs get written to /var which is a RAM disk, so there is not much space. So setting the rotate option fairly frequently is your best bet there. Even then it may not keep a lot of data, it depends on how busy your network is.

            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
            • N
              Nachtfalke
              last edited by

              @joebobfrank:

              (…)
              How about using Squid and Squidguard to log the URLs websites being accessed? Will this work? Do the logs get written to the CF card?

              For logging websites you should try sarg or lightsquid package.

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