OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: The_Istar on December 09, 2024, 07:30:02 PM

Title: Caddy redirects no longer working.
Post by: The_Istar on December 09, 2024, 07:30:02 PM
Since the last update to 24.7.10 it seems my redirects no longer work.

It seems it does pick up the request properly but then redirects to a URL that looks something like this:

http://bazarr/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/10.67.0.52:6767/.......
This address goes on like this until finally the request is aborted with: ERR_RESPONSE_HEADERS_TOO_BIG

My Caddy file is attached.

Looking at it I do not see any reason why the redirects should behave the way they do. There does not seem to be anything different in the Caddy file itself than before the update, as far as I can see.
Title: Re: Caddy redirects no longer working.
Post by: Monviech (Cedrik) on December 09, 2024, 08:01:21 PM
Hello thanks for the report, I think this will fix it:

https://github.com/opnsense/plugins/pull/4390

Title: Re: Caddy redirects no longer working.
Post by: The_Istar on December 09, 2024, 08:56:42 PM
That was fast. Thanks. Looking forward to seeing this implemented.
Title: Re: Caddy redirects no longer working.
Post by: Monviech (Cedrik) on December 09, 2024, 09:46:31 PM
I think I can merge it tomorrow and I will post the patch command here.
Title: Re: Caddy redirects no longer working.
Post by: Monviech (Cedrik) on December 10, 2024, 08:48:52 AM
You can install the patch with:

opnsense-patch -c plugins b4e133bb39d6e304d135bd2d26ddf2774a87ce09
Title: Re: Caddy redirects no longer working.
Post by: The_Istar on December 10, 2024, 01:44:36 PM
Patch seems to have worked.
It did require a reboot of the system though, a simple stop and start of Caddy was not enough.

Thanks for the quick support!
Title: Re: Caddy redirects no longer working.
Post by: Monviech (Cedrik) on December 10, 2024, 01:51:53 PM
Thank you for verifying :)