Squid HA support
-
Squid package 0.4.44_26 now supports HA / CARP interfaces:
This is mainly for Transparent mode and IPv6 squid configurations.
Don't forget to generate Local Cache on the secondary node and configure XMLRPC Sync tab!in case of IPv4, it's easier to use port forward to 127.0.0.1:3128:
- Bind Squid to Loopback (127.0.0.1) interface.
- Create a port forward from <CARP IP>:3128 to 127.0.0.1:3128.
- Have your users hit <CARP IP>:3128.
-
Reverse proxy too:
-
@viktor_g
Hi Viktor,I have been using HA for quite sometime, but have been puzzled how to configure Squid because I am also using pfBlocker. pfBlocker does not display HA addresses. After reading your post I am assuming that the LAN of pfBlocker will find its way to the right HA interface.
There is always something new to learn, one of my employees said today, and I seem always to be a newbie in some area. However exposing my ignorance has taught me a great deal.
From your post, could you please explain
in case of IPv4, it's easier to use port forward to 127.0.0.1:3128:
Bind Squid to Loopback (127.0.0.1) interface. Create a port forward from <CARP IP>:3128 to 127.0.0.1:3128. Have your users hit <CARP IP>:3128.
I would like to know the why and the how. I think I know what is going on here and even how to do it, but I have not spent much time doing Squid for a while and want to be sure.
- Why is it a good idea to do this?
- Where do I bind Squid to Loopback? maybe obvious but guessing gets me into trouble.
- I have several HA LANs. There is only one mapping here. Can I map multiple addresses to 127.0.0.1?
- Having my users "hit" the CARP address happens automatically I think.
Thanks for your patience and help.
Roy