Squid Savings Mac OS

Tag

  1. Mac Os Mojave
  2. Squid Savings Mac Os X
  3. Squid Savings Mac Os 11

Cache, Caching, How To, Internet, Mac OS, Squid, Tips, Tricks, Tutorial

I have some problems at first when installing this Squid 2.7 stable 9 on Mac OS. I will try to explain this as I remember, later 🙂

Cache, Caching, How To, Internet, Mac OS, Squid, Tips, Tricks, Tutorial I have some problems at first when installing this Squid 2.7 stable 9 on Mac OS. I will try to explain this as I remember, later 🙂. Take digital handwritten notes for class, work, or fun with Squid on your Android or Chromebook! Markup PDFs, sign documents, & more.

What do we need?

  • XCode

I use XCode 3.2 came from Mac OS DVD Installer. Basically we just need to be able compiling the source. That’s all. Without error of course. As long as the compiler works that’s fine.

After installing XCode, I remove some unnecessary files to reduce the space. So it’s just take about 850 Mb on my Developer folder.

  • squid 2.7 stable 9 http://www.squid-cache.org/

The reason I pick the 2.7 version because I need the store_url feature. As I know, we can easier install squidman but they don’t have the 2.7 version. We may go to squidman 3.0/3.1 and set the ICAP, but I’m no squid expert and setting ICAP seem more complicated (see http://squid-web-proxy-cache.1019090.n4.nabble.com/Youtube-dynamic-content-caching-with-squid-3-2-DONE-td4655311.html).

Okay, now we go to compiling part. Here some references you may want to check:

  • okomestudio.net/biboroku/?p=816

Extract the squid source code archive somewhere, and go to that folder. At first I configure it, I use this code:

but then squid won’t cache anything. No Hits, no increase on cache folder size. I guess it’s permission issue, but all of my chmod “jutsu” didn’t make any difference.

Then I wonder why squidman work fine. So I change the code to this:

I need to say thanks to Tony Gray at http://squidman.net/squidman/ for the quick reply 🙂

There is no –disable-ipv6 option on squid 2.7 but compile still work anyway with that command.

Then run this command:

Squid will installed to /usr/local/squid/

Edit squid configuration file

And edit as you want 🙂 Okay, here my squid.conf as reference:

Save that files. Now we need to create the cache folder, if you follow my setting we will create squid cache folder on our user cache library, for me it’s /Users/nawaikhsan/Library/Caches/squid/, change to your user path. I did this because I will use squidman later, and use the same folder for this.

Squid will create cache folder on that path above. If you do like I did, these folder will be owned by you(user):wheel. If not, change the ownership to your user:wheel

Mac Os Mojave

In theory, if you change the owner to nobody:nobody squid will happily accept it. But because squidman use that above ownership, so I’ll stick to that.

Now we can run squid.

Use this command if you want to run squid in background. There will be two squid process.

And if you want to see what’s happen with squid in front of your eyes you can use this:

Please note I don’t run squid as root, and it’s work fine here.

To quit squid on background use:

and for the later, you can use ctrl+c.

Check if squid really cache something.

There maybe various way to check squid cache.

  • You may look in to squid cache.log and see if there is hit at there.
  • Or you can check store.log and read the log, except for the ffffffff (memory) that should be your cached files.
  • You can also use squidclient, this will give some squid summary info.
  • The last one, the simplest and my favorite, we can just check the folder size. This may won’t give you lot info, but it does what I need.

Now, everything should work. I do not recommend you to load squid at startup because I will use squidman for the manager. This will be worthy if you had a problem with some site, like dynamic content caching.

I will post about integrating it with squidman in next post. If you had any question, you can post any comment below. And if you like these post consider to click the share button. Thanks for reading!

Credit: squid-cache.org, Tony Gray, okemestudio.net, maxpowerindustries.com, aacable.wordpress.com, th30nly@comstuff.net

Next: Integrating squid with squidman

About SquidMan

SquidMan is a MacOS X graphical installer and manager for the Squid proxy cache. It is designed to operate as a 'personal' proxy server.
When you run Squid on a MacOS X computer, it can:
  • cache downloaded content, reducing network traffic and improving browsing performance on slow links
  • act as a proxy server for other computers on your subnet
  • restore the operation of some MacOS X applications that normally fail through authenticated proxy servers

What's new - Announcing SquidMan 4.2 (November 15, 2020)

I'm pleased to announce the release of version 4.2 of SquidMan.
This version is bundled with Squid 4.13. Other changes include the following:
  • now a universal app that supports Apple Silicon and Intel on Big Sur
This version requires Apple Silicon or Intel hardware and has been tested on all major versions of MacOS X from 10.10 through to 10.15.
If you're upgrading from a (much!) older version of SquidMan, note that some of the values in the template used by older versions of SquidMan are incompatible with newer versions of Squid, and will generate errors or at least warnings when Squid is started. Thus SquidMan 3.8 and higher will need to replace the template file. If you have ever modified the template to add your own customisations, your changes will be lost during the upgrade. If you have modified the template from the default, be sure to save the old template before upgrading to the latest version of SquidMan. After the upgrade, you will need to manually merge your changes back into the new template.

Helper Tool Issue

If you see a message indicating that there was a problem communicating with or installing the helper tool, open the terminal, and enter the following two commands:
  • sudo chown root:wheel /Library/PrivilegedHelperTools
  • sudo chmod 755 /Library/PrivilegedHelperTools
Now try running SquidMan again. It appears that this issue is caused by the Microsoft Office installer not setting the correct group and permissions on this directory if it creates it.

System requirements

The current release of SquidMan requires MacOS X 10.10 or higher.

Feedback

You can mail me at the address below with feedback, suggestions or bug reports about SquidMan. Because I have a regular job, and write software in my spare time, please don't be offended if I don't reply. Please note that I cannot provide support for squid.

Downloads

The current and all previous releases of SquidMan can be downloaded here. The SquidMan download includes documentation on how to install and use SquidMan.

Squid Savings Mac Os X

Squid
  • version 4.2 (8.2M) (compatible with Mac OS X 10.10 through 11.0)
  • version 4.1 (5.8M) (compatible with Mac OS X 10.10 through 10.15)
  • version 4.0 (4.7M) (compatible with Mac OS X 10.6.8 through 10.14)
  • version 3.8 (4.2M) (compatible with Mac OS X 10.6.8 through 10.12)
  • version 3.6 (3.4M) (compatible with Mac OS X 10.6.8 through 10.10)
  • version 3.51 (2.9M) (compatible with Mac OS X 10.6.8 through 10.9)
  • version 3.5 (2.9M) (compatible with Mac OS X 10.6.8 through 10.9)
  • version 3.1 (2.8M) (compatible with Mac OS X 10.4 through 10.8)
  • version 3.0 (2.6M) (compatible with Mac OS X 10.4, 10.5 and 10.6)
  • version 2.5 (3.7M) (compatible with Mac OS X 10.4 and 10.5)
  • version 2.0 (3.2M) (compatible with Mac OS X 10.4 and 10.5)
  • version 1.8 (1.9M) (last release for Mac OS X 10.3)
  • version 1.61 (1.6M) (last release for Mac OS X 10.2)
  • version 1.52 (1.1M)
  • version 1.51 (1.1M)
  • version 1.50 (1.4M)
  • version 1.1 (1.0M)

Squid Savings Mac Os 11

SquidMan is Copyright © 2003-20 Tony Gray and may be freely distributed, provided it is not modified in any way. The icon is by Samuel Krueger ('pixeljerk').