Squid Reverse Proxy alternating between destinations - Squid3 Showstopper
-
I'm using the 2.2.6 version (amd64), squid3 0.4.7 version, since Dec 29'15, but suddenly on Feb 15'16, without any modifications in configuration or any new updates applied (I also don't use the auto update), after 47 days running very well since Dec 29'15, some very weird and serious issues on the reverse proxy starts to happen.
The issue is the same that was very well reported by Skami in https://forum.pfsense.org/index.php?topic=100895.msg562757#msg562757 and also by other users in http://networkengineering.stackexchange.com/questions/23421/squid-reverse-proxy-alternating-between-destinations/27937#27937
I had 7 web servers with about 6 mappings each one and also used the firewall as a transparent proxy.
Suddenly the proxy started to randomly alternate and redirect requests the between the wrong mappings, giving the HTTP error code 404 to the original clients requests.
I tried many things, disabling one by one of the web servers and the issue was only fixed after I disabled completely the reverse proxy, providing the right destinations to the transparent proxy requests.
It is a very serious issue and is a showstopper to the reverse proxy use.
Any clue?
-
Do you use External DNS names for your local machines and/or do you use an external domain name in your General Settings instead of something like .home / .internal?
That caught me at first. Make sure to use an internal DNS naming and make sure Squid will accept the external URL name and map it to a local name. I think squid get mixed up if you mix the both.Hope this helps you.
-
The same problem affected my attempt to configure reverse proxy. I have not found a solution.
The problem dates back to October 2015 judging by this post https://forum.pfsense.org/index.php?topic=100895.0. Downgrading solved the problem back then.
As for relationship to DNS, I doubt it because I specified everything by IP on the LAN side with unique names in the squid3 reverse proxy configuration.
-
Any news on this topic?
My pfSense / Squid Reverse Proxy has the same problem. :( -
I'm seeing the same behavior!
It randomly switches between endpoints, as if the mapping is not ignored in some occasions..Anyone found a fix for it?
EDIT: end all regexes with $ seems to fix the randomness
-
i know its been a while but i'll post my experience for future reference.
i had the same issue for quite some time and i solved it by making sure no peer (web server) had spaces on the names, i switches all the spaces to underscores and it was solved.
i hope it can solve the issue for at least some of you guys.
cheers.