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.
https://github.com/opnsense/plugins/pull/4054
Thanks, for the quick fix !
👌
Quote from: Monviech on June 23, 2024, 09:41:30 AM
https://github.com/opnsense/plugins/pull/4054
Hero! :)