Labope03

tailscale 能强制走 DERP 吗

  •  
  •   Labope03 · Oct 16, 2024 · 4150 views
    This topic created in 574 days ago, the information mentioned may be changed or developed.

    tailscale 有办法强制走 DERP 吗,不想走直连。

    直连走的 UDP ,速度不太稳定,时快时慢的。

    所以自建了 DERP ,DERP 上有 200m 的上传带宽,想着 DERP 走的 TCP ,速度是否应该能稳定些。

    Supplement 1  ·  Oct 16, 2024
    结贴:防火墙里把 41641 和 3478 端口关了,重启就行了。
    Supplement 2  ·  Oct 16, 2024
    额,,一开始防火墙封了 41641 确实走的 DERP
    但不知道怎么回事 过了一会 又直连了。。。

    算了 放弃了
    Supplement 3  ·  Oct 17, 2024
    再次补充 最后还是成功了 需要在 OP 防火墙里把 41641 3478 阻止了
    注意,是双向阻止,OP 向 WAN 方向 及 WAN 向 OP 方向 都要阻止
    13 replies    2025-09-03 20:21:01 +08:00
    R4rvZ6agNVWr56V0
        1
    R4rvZ6agNVWr56V0  
       Oct 16, 2024
    在客户端,添加一条阻止 UDP 端口 41641 的出站规则试试
    Labope03
        2
    Labope03  
    OP
       Oct 16, 2024
    @GeekGao 添加过了
    在 OP 防火墙-通信规则 添加了从 WAN 口拒绝到此设备 41641 口的规则,但 41641 还是能通。还是直连。
    R4rvZ6agNVWr56V0
        3
    R4rvZ6agNVWr56V0  
       Oct 16, 2024
    你的客户端,不是网络设备上。
    ss098
        4
    ss098  
       Oct 16, 2024
    如果是 Linux ,在文件 /etc/default/tailscaled 追加一行 TS_DEBUG_ALWAYS_USE_DERP=true
    Labope03
        5
    Labope03  
    OP
       Oct 16, 2024
    @GeekGao 我的 tailscale 正好安装在家里的 op 上面,然后工作电脑上安装了 tailscale
    Labope03
        6
    Labope03  
    OP
       Oct 16, 2024
    @ss098 感谢 感觉这个是正解 我试试
    tangzs
        7
    tangzs  
       Oct 16, 2024
    我是手机和群晖组网,在 vps 上搭了 DERP ,不知道有没有方法设置 TS_DEBUG_ALWAYS_USE_DERP 这个变量 ...
    Labope03
        8
    Labope03  
    OP
       Oct 16, 2024
    @tangzs 试试群晖里把 41641 阻止 我看网上说还需要把 3478 也阻止了
    但我还没成功
    Tiande
        9
    Tiande  
    PRO
       Oct 16, 2024 via Android
    换成 Frp 反代也可以吧
    tangzs
        10
    tangzs  
       Oct 17, 2024
    @Labope03 谢谢,晚点我再折腾下
    Sekai
        11
    Sekai  
       Oct 17, 2024
    "OmitDefaultRegions": true
    molezznet
        12
    molezznet  
       Jul 7, 2025
    @Labope03 @ss098 对 windows 也是这个 true 强制 derp
    psllll
        13
    psllll  
       Sep 3, 2025
    强制走 DERP 可以的话,那能强制走 p2p 吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.