Caddy IPv6 address in Reverse Proxy handler

Started by Papasan, June 23, 2024, 12:49:18 AM

Previous topic - Next topic
Hi,

I am running OPNsense 24.1.9_4-amd64 and ran into an issue when configuring an IPv6 address in the Caddy Reverse Proxy - Handlers and using non-standard ports (port 81 and 82).
It looks like the IPv6 address is missing the square brackets in the /usr/local/etc/caddy/Caddyfile
This makes the ports 81 and 82 part of the IPv6 address.

test1.xxxx.net {
        handle {
                reverse_proxy 2001:xxxx:80f::2:81 {
                }
        }
}
# Reverse Proxy Domain: "76fa684c-xxxxx"
test2.xxxx.net {
        handle {
                reverse_proxy 2001:xxxx:80f::2:82 {
                }
        }
}


fixing this manually and restart solves the issue temporarily, until a new config change is made and the config is overwritten again.


               reverse_proxy [2001:xxxx:80f::2]:81 {
                }
...
        handle {
                reverse_proxy [2001:xxxx:80f::2]:82 {
                }



Hopefully this can be fixed ?

Cheers,
Erik

Sure, the template needs a fix there. I gonna work on that soon.
Hardware:
DEC740




Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)