• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cevincheung
V2EX  ›  程序员

连接 vpn 后怎么访问远端内网资源?

  •  
  •   cevincheung ·
    cevin · Apr 23, 2014 · 5856 views
    This topic created in 4474 days ago, the information mentioned may be changed or developed.
    在公司linux内网服务器上设置了pptpd服务器。设置如下:

    localip 10.1.0.1
    remoteip 10.1.0.10-100

    内网网段是:192.168.1.x

    在家里连接上vpn后不能访问公司里其他PC的共享资源,为啥?
    4 replies    1970-01-01 08:00:00 +08:00
    lfzyx
        1
    lfzyx  
       Apr 23, 2014
    jasontse
        2
    jasontse  
       Apr 23, 2014 via iPad
    192.168.1.1路由器上添加静态路由如下

    IP 10.1.0.0
    掩码 255.255.255.0
    网关 192.168.1.x(VPN服务器IP)
    cevincheung
        3
    cevincheung  
    OP
       Apr 23, 2014
    @jasontse

    ok了。

    如果是在阿里云等类似平台上搭建vpn,连接后管理远端内网服务器,没法加路由咋办 - -#
    jasontse
        4
    jasontse  
       Apr 23, 2014 via iPad
    @cevincheung 不能控制的不叫内网
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:06 · PVG 06:06 · LAX 15:06 · JFK 18:06
    ♥ Do have faith in what you're doing.