sslh

Multiplex connections based on initial packet content to multiple ports

brewmacoslinux
Try with needOr install directly
Source

About

Forward connections based on first data packet sent by client

Commands

sslhsslh-selectsslh-fork

Examples

Start sslh listening on port 443, forwarding SSL to 8443 and SSH to 2222$ sslh -u nobody -e 0.0.0.0:443 -s 127.0.0.1:8443 -l 127.0.0.1:2222
Run sslh with a configuration file$ sslh -c /etc/sslh/sslh.conf
Run sslh in foreground with verbose logging for debugging$ sslh -F -v -e 0.0.0.0:443 -s 127.0.0.1:8443 -l 127.0.0.1:2222