this post was submitted on 11 Apr 2024
5 points (85.7% liked)
OPNsense
489 readers
1 users here now
All discussions about the open source, FreeBSD-based firewall called OPNsense.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think you can achieve it with a reverse-proxy. Let's say that domain.com points at server 0, you'll have to put a reverse proxy that answers all calls. In the config of the reverse proxy you'll have to redirect the services based on the domain. I'm using Caddy and this example should work:
And so on.
EDIT: Looks like I was late to the party! +1 to @greco reply as it's more complete and clear (especially on the risks of this approach)