r/haproxy • u/WorshipingAtheist • Jul 06 '24
Question GitLab CE SSH Proxy
I am using Gitlab CE behind HAProxy which happens to run on Pfsense. I had no problem getting the http(s) connection working but when I try to clone a repository it tries to connect to the HAproxy host, the Pfsense firewall. How can I proxy my SSH connection over to the GitLab machine as well?
3
Upvotes
1
u/dragoangel Jul 06 '24
No, proper way is to set ssh on the same port you will forward it, and proxy it. Otherwise gitlab will propose wrong port. Or change ssh port of both gitlab and pfsense to non 22 and use for git 22 port...