2013-03-19 76 views
1

我有限的网络连接只有少数端口打开(80,443,...),我也有服务器没有这些限制,这是有限的网络。隧道通过一个端口

有什么办法如何隧穿一个端口到所有其他端口? 我可以安装任何我想要我的服务器上 - 目前有Ubuntu的服务器12

您能否提供我任何解决办法吗?如果有的话。

感谢您的提前。

回答

0

我会指出你对超级用户这样一个问题:

顶部的建议是给sshuttle一个去,因为你使用的是Linux,这将是一个不错的选择。

而且Linux有此内置支持,您可以使用man ssh找到细节:

The following example would connect client network 10.0.50.0/24 with 
remote network 10.0.99.0/24, provided that the SSH server running on the 
gateway to the remote network, at 192.168.1.15, allows it: 

    # ssh -f -w 0:1 192.168.1.15 true 
    # ifconfig tun0 10.0.50.1 10.0.99.1 netmask 255.255.255.252 

这是没有提到正在建立一个VPN的一两件事,但你只能这样做,如果你有端口1723打开(用于PPTP)。