Labope03

tailscale 能强制走 DERP 吗

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