Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - latchee

#1
General Discussion / Re: TCP reverse proxy
June 19, 2024, 10:37:25 PM
Hi thank you for your answer.

I do not have OPNproxy as I use the free version of OPNsense (for personal use, homelab).
I have Caddy installed. But this does only HTTP(S) reverse proxy.

I also have nginx reverse proxy installed. Not sure if I could use this? Would there be any tutorial? Or anybody who has done this in the past?

Cheers,
#2
General Discussion / TCP reverse proxy
June 19, 2024, 03:24:30 AM
Hi there,

I am looking at doing TCP reverse proxy, if that is possible.

To explain I have server A and server B behind opsense. Both are using the same internal port, for example 8085.
I have cnames for each server that points to the WAN IP of opnsense:
- serverA.domain.com
- serverB,domain.com

Port forwarding cannot use TLS.

Is it possible to create a conditional NAT port forwarding entry? I.e. if client connects via serverA.domain.com:8085 forward to server A.
If client connects via serverB.domain.com:8085, forward to server B.

Thank you in advance for your help and advice :)

edit: corrected typo