It's still available, but only as an intel package as the ppc package wasn't stable. Just run it on another machine on your network. Works great. https://jonathanalland.com/downloads/legacy-mac-proxy.dmg
Sounds like you may have forgetten to "trust" the certificate, or have the wrong proxy setting. They should look like this:
View attachment 1746608
It's also possible squid didn't start. Check activity monitor. If you are trying to connect a PPC to another "newer" machine running squid, you need to copy the certificate from that machine to your PPC, import it, trust it, then switch the proxy IP to that machines IP port 3128. PPC Leopard support is still experimental, but it is known to work for some. @Wowfunhappy and i both recommend going the route of using anothing machine to run squid, and keep the load off the PPC machine.
Glad you still find TFT useful. Just curious why you still use the older v3 when v5 has been out for awhile now with tons more features. Unless of course you just prefer v3 for its simplicity.
Cheers
Squid4Leopard.zip
drive.google.com
Be prepared for 100% cpu when it crashes. Better off using it on another machine to act as the proxy, or use tenfourfox/interwebppc/arcticfoxppc for those pages.
http_port 3128 ssl-bump generate-host-certificates=on cert=/Library/Squid/Certificates/squid.pem key=/Library/Squid/Certificates/squid-key.pem
tls_outgoing_options cafile=/Library/Squid/Certificates/cacert.pem
sslcrtd_program /Library/Squid/security_file_certgen
Apr 6 13:50:53 ontologia squid[2561]: Created PID file (/tmp/squid.pid)
Apr 6 13:50:53 ontologia squid[2561]: Squid Parent: will start 1 kids
Apr 6 13:50:53 ontologia squid[2561]: Squid Parent: (squid-1) process 2563 started
Apr 6 13:50:54 ontologia squid[2563]: Current Directory is /
Apr 6 13:50:54 ontologia squid[2563]: Starting Squid Cache version 4.17 for powerpc-apple-darwin9.8.0...
Apr 6 13:50:54 ontologia squid[2563]: Service Name: squid
Apr 6 13:50:54 ontologia squid[2563]: Process ID 2563
Apr 6 13:50:54 ontologia squid[2563]: Process Roles: worker
Apr 6 13:50:54 ontologia squid[2563]: With 256 file descriptors available
Apr 6 13:50:54 ontologia squid[2563]: Initializing IP Cache...
Apr 6 13:50:54 ontologia squid[2563]: DNS Socket created at [::], FD 10
Apr 6 13:50:54 ontologia squid[2563]: DNS Socket created at 0.0.0.0, FD 15
Apr 6 13:50:54 ontologia squid[2563]: Adding domain [homewifi].local from /etc/resolv.conf
Apr 6 13:50:54 ontologia squid[2563]: Adding nameserver 94.140.14.14 from /etc/resolv.conf
Apr 6 13:50:54 ontologia squid[2563]: Adding nameserver 76.76.19.19 from /etc/resolv.conf
Apr 6 13:50:54 ontologia squid[2563]: helperOpenServers: Starting 5/32 'security_file_certgen' processes
Apr 6 13:50:54 ontologia squid[2563]: Store logging disabled
Apr 6 13:50:54 ontologia squid[2563]: Swap maxSize 0 + 262144 KB, estimated 20164 objects
Apr 6 13:50:54 ontologia squid[2563]: Target number of buckets: 1008
Apr 6 13:50:54 ontologia squid[2563]: Using 8192 Store buckets
Apr 6 13:50:54 ontologia squid[2563]: Max Mem size: 262144 KB
Apr 6 13:50:54 ontologia squid[2563]: Max Swap size: 0 KB
Apr 6 13:50:54 ontologia squid[2563]: Using Least Load store dir selection
Apr 6 13:50:54 ontologia squid[2563]: Current Directory is /
Apr 6 13:50:54 ontologia squid[2563]: Finished loading MIME types and icons.
Apr 6 13:50:54 ontologia squid[2563]: HTCP Disabled.
Apr 6 13:50:54 ontologia squid[2563]: Adaptation support is off.
Apr 6 13:50:54 ontologia squid[2563]: Accepting SSL bumped HTTP Socket connections at local=[::]:3128 remote=[::] FD 26 flags=9
Apr 6 13:50:55 ontologia squid[2563]: storeLateRelease: released 0 objects
sh-4.3# curl -x http://10.0.0.1:3128 -I http://google.com
curl: (28) Failed to connect to 10.0.0.1 port 3128 after 74684 ms: Operation timed out
Yeah, if your cpu is spiked it crashed and hung up. Killing it and restarting it will help for a little while before it hangs again. Never could figure out why the ppc version was so anal. If you have the ability to run the intel version on a spare machine its rock solid.
Cheers
You’re trying to import the wrong certificate, you want to import “squid.pem”. This certificate is generated when you run the installer so that it’s unique to every machine, which we want for security reasons.Hi. I didn’t want to resurrect this part of the thread unless I reached an impasse — which I now find myself.
I’ve been following your path of installing squid4 with Macports on the target server where squid will live, and using the squid.conf prepared helpfully by @Wowfunhappy in his all-in-one install for Snow Leopard (I extracted it with Pacifist and copied that over into the config file location, per your steps in the opening post), I’m running into an issue with trying to import the cacert.cae into Keychains.
Whether I try to use the version supplied in the @Wowfunhappy installer, or if I grab the latest from here, I run into the following issue:
View attachment 1987347
When I click to “View Certificates”, this occurs:
View attachment 1987349
And, ultimately, efforts to add the certificate terminates with this error:
View attachment 1987350
I should add that I’m mostly just testing the add of this certificate on a 10.6.8 system, even though I was hoping to use it on a Leopard Mac.
I did skim through most of this thread, and it’s entirely possible I missed something really basic.
You’re trying to import the wrong certificate, you want to import “squid.pem”. This certificate is generated when you run the installer so that it’s unique to every machine, which we want for security reasons.
I’m on mobile right now, but take a look at the post install scripts.
Right, that’s why I said:Also, drawing from a view of the legacy-mac-proxy.dmg in Pacifist (attached), I didn’t see a “squid.pem”
This certificate is generated when you run the installer so that it’s unique to every machine, which we want for security reasons.
Right, that’s why I said:
Glad you have it working!
Well that sucks! I was hoping that MacPorts toolchain/compiler updates might eventually fix this some day!I still poke away at it here and there, but no real progress yet. I think i may know the issue however. After scouring the net it might come down to how many processes the kernel can handle. Sadly 10.4 and 10.5's kernel cant handle all that many. Squid creates quite a few child processes for every site visited and console shows errors with something like "child process died, not enough resources" or something to that effect. So the PPC builds might be fine, but the kernel is just too limited (or old) to handle it.
...I've always assumed (without explicit testing/evidence) that it was websites which load many connections at once. So, when you browse Wikipedia you're basically only talking to Wikipedia's servers. When you load e.g. MacRumors you're loading content from any number of ad networks and CDNs. The sudden influx crashes Squid.What might be happening is that certain web sites contain a specific type of element that is "too complex/demanding" for the Squid process to handle. I'm not sure what this would be yet, but the fact that sometimes a second Squid process can finish loading up a "demanding" page makes me think there is some limitation within the Squid process itself. Very simple web sites like Wikipedia never seem to cause a crash.
What I also find notable is that 10.6 seems to run Squid fine out of the box. So this has to be something that changed between Leopard and Snow Leopard.I'll have to find the website again, but it explained how to manually override the default limit. It works on 10.6 and above, but doesnt allow much wiggle room on 10.4/10.5 and doesnt stick between reboots.
Thanks. Running Squid with -d 0 does print some additional info:As for the console output, if you run squid with a certain switch (-d 0 maybe?) it'll stay active in the terminal and you can watch it work while you browse. Thats where i noticed the issue of child processes dying then squid crashing.
10.6 Intel. However, Squid has the same stability issues on Intel 10.4/10.5 as on PPC, so I don't believe that CPU architecture is the problem here.@Wowfunhappy are you referring to 10.6 PPC or 10.6 Intel?