I am trying to set up LDAP server behind proxy.
I am using proxy because I have only one static IP address, but LDAP auth is bind to ldap.mydomain.com
.
So I want to redirect all requests to LDAP server behind proxy.
I am using HAProxy
and it supports TCP connections. But I have not found how can I set up it with LDAP.
Or it would be better to redirect only HTTP/HTTPS requests to the proxy and all other TCP requests redirect directly to the server with the help of my router configuration ?
I would be grateful for any help.