r/opnsense • • 9d ago

Quel reverse proxy

Bonjour,

Je suis en train de migrer de pfSense vers OpnSense dans mon homelab.

Sur pfSense j'utilisais HAproxy pour rediriger les flux web vers le bon serveur web (des vl différentes)

Que me conseillez vous d'utiliser sous OpnSense ? HAproxy ou un autre?

Critères : facile à utiliser et sécurisé.

3 Upvotes

20 comments sorted by

13

u/Jumpstart_55 9d ago

Caddy

3

u/xantioss 9d ago

Second this. It’s easy enough to get up and running, and it has some nice features.

2

u/thetechnivore 9d ago

I’ve been very happy with Caddy as well, using it via the opnsense plugin

0

u/gportail 9d ago

Pourquoi ?

1

u/MSFT_PFE_SCCM 9d ago

I use Caddy as well and use it for getting Let's Encrypt certs so traffic is encrypted as well.

0

u/gportail 9d ago

Pour let's encrypt j'utilise le plugin ACME d'opnsense.

4

u/Asche77 9d ago

https://forum.opnsense.org/index.php?topic=53159

The hidden risks of running proxy services on a firewall

2

u/gportail 9d ago

Merci pour l'article. De la lecture 👍

2

u/Wirehead-be 9d ago

Haproxy has no trouble with raw datasockets as well, or terminating a raw stream with TLS, that's something Caddy can't do.

1

u/gportail 9d ago

Bon a savoir.

2

u/Monviech 9d ago

But Caddy can terminate tls and also originate tls.

That's what the layer4 package does that is shipped by default inside the plugin.

https://docs.opnsense.org/manual/how-tos/caddy.html#caddy-layer4-proxy

1

u/Wirehead-be 9d ago

Is that not a module that's out-of-tree of caddy? (E.g. no support. That said, not such an issue for homelab, but in other scenarios might be an issue)

1

u/Monviech 8d ago edited 8d ago

the module is in mholt repository who was the founder of caddy and actively maintained and at some point it will be merged into caddy core (unverified but from what I have seen that makes sense). But anyway both caddy and any of its module come with the same kind of license that excludes any liability like most other open source software, so in that case you cannot use anything for other tasks than a homelab, which in realit doesnt happen.

6

u/mendosux 9d ago

I personally like haproxy. It’s installed per default and kind of industry standard. Haproxy acls are very powerful

1

u/danievdm 9d ago

I've been using haproxy too, and have one of my services running on a separate VLAN. All been working well.

4

u/Status-Art-9684 9d ago

I would recommend Caddy as it's apparently easier to use. That being said, I spent hours setting up haxproxy and it works for 90% of data. I have some weird websocket errors from Unraid that doesn't seem to work.

3

u/PatateEnQuarantaine 8d ago

I use the Nginx plugin/service directly in OPNsense

2

u/nitish_webheel 5d ago

I use HAproxy which work well and can set ACL rule.

1

u/whattteva 3d ago

I use Caddy, but not from OPNSense.

I have a separate FreeBSD 15.1 server that runs Caddy that I configured manually with a Caddyfile.