Caddy: use case "Proxy TCP/UDP on Layer 4"

Started by Tubs, January 05, 2025, 09:02:35 PM

Previous topic - Next topic
Hello,

what is the advantage of using "Proxy TCP/UDP on Layer 4" by Caddy instead of using port forwarding in OPNsense?

I just migrated from HAProxy to Caddy. Reverse proxy with TLS termination and TLS (SNI) Multiplexing on HTTPS Port with TLS passthrough were easy to set-up and just work fine. It was a pain to get this combination running in HAProxy.

Not clear to me is what a use case for "Proxy TCP/UDP on Layer 4" could be where it is better to use Caddy instead of just do port forwarding.

A common use case would be to translate from externally IPv6 to internally IPv4, or load balance between multiple targets.

Otherwise without an additional layer 7 matcher it has no real benefit from port forward.
Hardware:
DEC740