I have to setup haproxy to load-balance SFTP connections. I can get this working fine if i bind the frontend end to an arbitrary port and loadbalance to backend_server:22. However I cannot do this in practice as I cannot force users to use a new port so I must use port 22 on my frontend and I cannot get this config working. I have tried modifying sshd config to listen on another address but no luck.
- Must I bind to port 22 to successfully listen and loadbalance ssh connections (can i not just bind to port xx and listen on 22?)
- Whats the difference between listen vs bind?
- does anyone have a sample config?
Many thanks in advance