V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cheng6563
V2EX  ›  路由器

梅林官方固件,我自己启的 frps 服务如何用外网 IP 访问?

  •  
  •   cheng6563 · Oct 18, 2021 · 1993 views
    This topic created in 1663 days ago, the information mentioned may be changed or developed.

    RT-AC66U B1,有公网 IP,直接用路由器的端口转发功能转发到其他电脑的端口时外网访问正常。路由器上的 openvpn 也可以用外网连接。

    我自己 ssh 到路由器起一个 frps 服务,监听地址是 0.0.0.0:35999,使用内网 192.168.50.1:35999 可以正常连接使用。

    但使用外网地址就无法连接了,表现为卡半天然后提示连接无响应。

    尝试设置个到 127.0.0.1 的端口转发没有作用。

    有无彦祖知道要设置个啥才能让我自己启的端口能够外网访问

    3 replies    2021-10-19 10:57:21 +08:00
    wtks1
        1
    wtks1  
       Oct 18, 2021 via Android
    是不是有防火墙
    chanssl
        2
    chanssl  
       Oct 19, 2021
    端口转发到路由器内网 IP ( 192.168.x.1 ),不是 127.0.0.1
    cheng6563
        3
    cheng6563  
    OP
       Oct 19, 2021
    @wtks1 确实是防火墙的问题,而且 Web 页面里摆弄防火墙设置似乎没用,我后来用 iptables 手动加规则就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4780 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.