[squid-users] squid 7.1 , url_rewrite_program does not work

Matthias Fischer matthias.fischer at ipfire.org
Fri Oct 17 23:32:28 UTC 2025


Hi,

I have a similar problem here after upgrading from squid 6.14 to 7.2 for
testing purposes.

'squid -k parse' shows no errors, the same config seems to start without
any errors. But redirecting produces errors. Looking in 'cache_log' I found:

***SNIP***
...
2025/10/18 01:07:34 kid1| ERROR: URL-rewrite produces invalid request:
CONNECT
http://[ROUTER_IP_DELETED]:81/redirect.cgi?category=custom_advertising&url=content-loader.com:443&ip=[HOST_IP_DELETED]
HTTP/1.1
current master transaction: master53
2025/10/18 01:07:34 kid1| ERROR: URL-rewrite produces invalid request:
CONNECT http://[ROUTER_IP_DELETED]:81/images/urlfilter/1x1.gif HTTP/1.1
current master transaction: master53
...
***SNAP***

This is *v7.2*(!) - which works a bit better then v7.1. Redirecting in
v7.1 wasn't working at all...

So I have the same question. Does 'anyone' has an idea what is happening
here and how to solve it?

Thanks in advance!

On 27.08.2025 09:02, Dmitry Melekhov wrote:
> Hello!
> 
> 
> Tried to upgrade squid to 7.1 from 6.14.
> 
> And the same config does not work:
> 
> url_rewrite_program /usr/local/rejik3/redirector 
> /usr/local/rejik3/redirector.conf
> 
> 
> squid passes url to url_rewrite_program
> 
> I can see in this program log that it works, but squid does not redirect 
> and just processes original request and passes it's result to user.
> 
> 
> There is no changes decribed in manual
> 
> 
> https://www.squid-cache.org/Versions/v7/cfgman/url_rewrite_program.html
> 
> https://www.squid-cache.org/Versions/v6/cfgman/url_rewrite_program.html
> 
> 
> Looks the same.
> 
> 
> 
> Could you tell me what is wrong here?
> 
> 
> Thank you!
> 
> 
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> https://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list