by x3blah · 6y ago · 0 comments
It is possible to do similar things with haproxy. Configured to listen for TLS connections on a large number of ports, look for a secret combination of custom headers and values, then, if found and matching, forward to a localhost ucspi tcpserver on the backend. The tcpserver may then execute some program, for example sshd or pfctl.
Here's an example of what that would look like:
https://gist.github.com/dcorbett-haproxy/ec7059cbfccf12c8f41...