sarices
V2EX  ›  问与答

内网服务器外部远程链接问题

  •  
  •   sarices · Dec 26, 2013 · 3445 views
    This topic created in 4564 days ago, the information mentioned may be changed or developed.
    现在有一台内网的服务器,能访问互联网,但是没有端口,有什么办法能不开端口的情况下远程链接到这台机器?

    机器系统是 CentOS 6.4 64
    9 replies    1970-01-01 08:00:00 +08:00
    rwx
        1
    rwx  
       Dec 26, 2013   ❤️ 1
    在路由上做端口转发/映射
    不明白什么叫不开端口的情况下,或许是像若干年前的木马一样,服务器主动发连接出去?
    sarices
        2
    sarices  
    OP
       Dec 26, 2013
    @rwx 现在的情况是路由器不能动,所以就不能端口转发
    mfaner
        3
    mfaner  
       Dec 26, 2013   ❤️ 1
    ssh反向连接?
    xujialiang
        4
    xujialiang  
       Dec 26, 2013 via Android   ❤️ 1
    类似花生壳的一些映射,logmein等服务。但是不晓得有木有linux版本
    lijinma
        5
    lijinma  
       Dec 26, 2013   ❤️ 2
    刚好我也由这样的需求;

    已找到解决方案,请查收:

    http://www.cnblogs.com/eshizhan/archive/2012/07/16/2592902.html
    sarices
        6
    sarices  
    OP
       Dec 26, 2013
    @lijinma 感谢,先试试。
    tan9le
        7
    tan9le  
       Dec 26, 2013 via iPhone
    向日葵。。。
    wysard
        8
    wysard  
       Dec 26, 2013
    我现在的解决方案是:
    1、在家里的服务器上开个虚拟机跑Debian,运行OpenVPN Server,用DNSPod解决动态IP问题。(如有VPS之类的更好)
    2、在公司内网服务器上运行OpenVPN Client,用脚本判断链路状态并实现自动重连。
    3、在两侧配置一下路由规则就ok了。
    略繁琐,但好处是使用方便,不挂Proxy就能访问内网上的一些服务,如腾讯通;移动办公时只要拨回家里的OpenVPN Server就ok。
    newborn
        9
    newborn  
       Dec 27, 2013
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5462 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 01:39 · PVG 09:39 · LAX 18:39 · JFK 21:39
    ♥ Do have faith in what you're doing.