sslh accepts connections on specified ports, and forwards them further based on tests performed on the first data packet sent by the remote client.