V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
leowll
V2EX  ›  问与答

请教一个 PPTP 端口 1723 的内网穿透问题

  •  
  •   leowll · Jan 27, 2018 · 9386 views
    This topic created in 3012 days ago, the information mentioned may be changed or developed.

    家里的网络是联通的。 自己有一个 VPS,VPS 上安装了内网穿透的 FRPS 做服务端, 又在小米路由器上装了 FRP 的客户端。小米路由器上也安装了 PPTP 服务器。 然后在小米路由器的 FRP 客户端里设置了 PPTP 的端口映射和 80 端口映射。 在 FRPS 的管理界面可以看到端口已经成功的映射。 可以通过 VPS 的 ip 地址访问到小米路由器的管理页面,就是怎么也连不上 PPTP 服务器。 会是什么原因?

    10 replies    2025-04-22 15:26:42 +08:00
    jasontse
        1
    jasontse  
       Jan 27, 2018 via iPad
    GRE 协议映射了没有?注意是和 TCP 协议同级的那个 GRE。
    leowll
        2
    leowll  
    OP
       Jan 27, 2018
    FRP 支持 GRE 映射?只看到了 HTTP,HTTPS,TCP 和 UDP
    mingl0280
        3
    mingl0280  
       Jan 28, 2018
    别试了,国内 PPTP/L2TP/OpenVPN 基本上都是协议过滤,根本连不上。
    leowll
        4
    leowll  
    OP
       Jan 28, 2018
    @mingl0280 不过我做了一下 ssh 22 端口的映射倒是成功了。
    mingl0280
        5
    mingl0280  
       Jan 29, 2018
    @leowll 是的,运营商那边协议过滤,VPN 这块除了 SSH 基本上没法用……
    leowll
        6
    leowll  
    OP
       Jan 29, 2018
    @mingl0280 那 IPSec 有戏吗?
    mingl0280
        7
    mingl0280  
       Jan 29, 2018
    @leowll IPSec 我没记错的话是三层协议,二层是 L2TP,很可能被拦截了……
    990148
        8
    990148  
       Sep 1, 2018
    成功了吗?我也遇到这个问题
    ax2009live
        9
    ax2009live  
       Feb 12, 2023
    威批恩就会容易被各运营商和 GFW 盯上,特别是 VPS 在国外的,一封一个准,没事别折腾;

    (如下都是我亲测 ok 的,如有需要可以沟通,名字加 @gmail 就是我的邮箱)
    如果你的 VPS 在墙内,
    1 、frp 本身有个代理功能,强烈推荐( 墙外的 VPS 是没法使用的,被 GFW 拦截 )
    [http_proxy]
    type = tcp
    remote_port = 3128
    plugin = http_proxy
    plugin_http_user = user
    plugin_http_passwd = password
    use_encryption = true
    use_compression = true
    tls_enable = true
    就可以实现大部分威批恩的功能,浏览器或 wifi 设置代理后,就可以访问内网的很多服务,不需要一个一个内网映射;
    还可以设置用户和密码

    2 、用 docker 创建 IPSec 服务器;映射 udp 500 4500 两个端口到 VPS 上;( 墙外的 VPS 不要试,IP 的 500 4500 端口一定会被 GFW 拦截 )
    群晖和威联通的 L2TP/IPSec 服务器,死活连接不了;
    最后使用大神的镜像 ( 非常小 ) https://github.com/hwdsl2/docker-ipsec-vpn-server 实现了威批恩内网穿透;
    wangweitung
        10
    wangweitung  
       Apr 22, 2025
    2 、用 docker 创建 IPSec 服务器;映射 udp 500 4500 两个端口到 VPS 上;( 墙外的 VPS 不要试,IP 的 500 4500 端口一定会被 GFW 拦截 )
    群晖和威联通的 L2TP/IPSec 服务器,死活连接不了;
    最后使用大神的镜像 ( 非常小 ) https://github.com/hwdsl2/docker-ipsec-vpn-server 实现了威批恩内网穿透;

    这个很不错。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.