HAProxy community

Multiple RDP endpoints using the same source port number


Hi, Im wondering if the following is possible.

We have two different RDP servers that do different functions so are classed as different backends but use the same source port 3389.Is it possible to split these with an ACL at the frontend using something like the destination computer name and direct them to the relevant backend?

For example two RDP endpoints are RDP1.example.com and RDP2.example.com, both using the default 3389 port

frontend rdp
bind :3389
acl is-rdp1 if the endpoint is rdp1.example.com
acl is-rdp2 if the endpoint is rdp2.example.com
use backend rdp1 if is-rdp1
use backend rdp2 if is-rdp2

backend rdp1
server rdp-1 rdp1.example.com

backend rdp2
server rdp-2 rdp2.example.com

I need the ACL to identify the RDP server address.

Thanks in advance