OpenVPN - port-share'ing with OpenSSH

Solution 1:

The man page I see says that this only works with http/https. Unless you have found a patch or something I am not aware of?

Man OpenVPN

--port-share

When run in TCP server mode, share the OpenVPN port with another application, such as an HTTPS server. If OpenVPN senses a connection to its port which is using a non-OpenVPN protocol, it will proxy the connection to the server at host:port. Currently only designed to work with HTTP/HTTPS, though it would be theoretically possible to extend to other protocols such as ssh.

Not implemented on Windows.

Solution 2:

Have a look at sslh, a ssl/ssh multiplexer.

From its home page :

What is it?

sslh accepts HTTPS, SSH, OpenVPN, tinc and XMPP connections on the same port. This makes it possible to connect to any of these servers on port 443 (e.g. from inside a corporate firewall, which almost never block port 443) while still serving HTTPS on that port.

Tags:

Ssh

Openvpn