I'm currently building my own little cluster at home and I'm trying to get SSH routing (load balancing) to work with HAProxy. I have figured out how to route HTTP traffic but I'm struggling with SSH. I do not know enough about the TCP protocol to instantly know what I have to look for so that I can determine how to query connections for something like a host (not sure if that is even somewhere in the connection) or just anything that would identify which server I want to SSH into.
The documentation mentions SSH traffic over and over again so there might be something I missed. I do not want to use different ports and route back and forth using different ports because they might not be standard are therefore blocked on public networks or other stuff that would restrict me.
My current setup looks like this:
Request on my domains (or IP) -> Router -> NAT forward depending on port -> HAProxy listening on that port -> should now identify traffic that is dedicated for a certain server and proxy traffic towards it.
Edit: As Cha0s has cleared up this is simply not possible with SSH (or alike).
If you are interested in a different method Sven's answer give good insight in doing something similar but having different subdomains resolve to different public static IPs