OpenVPN – 与OpenSSH共享端口

是否有可能使用OpenVPN的共享端口选项在OpenVPN(2.2.1)和OpenSSH(5.3)守护进程之间共享相同的端口和IP?

我不能得到它的工作..我openssh监听端口22的所有接口,以及在端口443上使用TCP协议的openvpn守护进程。我已经添加了:

port-share 127.0.0.1 22 

到启动特定的openvpn守护进程的conf文件,并重新启动它 – 它开始没有错误。 但是,当我尝试从networking中的其他地方ssh到该IP和端口停止:

 ssh -v -p443 user@host OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Applying options for * debug1: Connecting to host [123.123.123.123] port 443. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type -1 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_dsa type 2 debug1: loaded 3 keys 

有什么我失踪? 显然端口是畅通的,openvpn继续在端口上工作..我一直没能find一个在我的searchOpenVPN + OpenSSH端口共享的工作示例,任何人都可以帮助吗?

我看到的手册页说这只适用于http / https。 除非你find了补丁或者我没有意识到的东西?

人OpenVPN

–port股

在TCP服务器模式下运行时,与其他应用程序(如HTTPS服务器)共享OpenVPN端口。 如果OpenVPN检测到与使用非OpenVPN协议的端口的连接,它将代理与主机端口上的服务器的连接。 目前只devise用于HTTP / HTTPS ,尽pipe理论上可以扩展到其他协议,如ssh。

没有在Windows上实现。

看看sslh ,一个ssl / ssh多路复用器。

从其主页:

它是什么?

sslh接受同一端口上的HTTPS,SSH,OpenVPN,tinc和XMPP连接。 这使得可以连接到端口443上的任何这些服务器(例如从企业防火墙内部,几乎从不阻塞端口443),同时仍然在该端口上提供HTTPS。