Hacker News 中文摘要

RSS订阅

Tailscale 对等中继 -- Tailscale Peer Relays

文章摘要

Tailscale推出Peer Relays功能,允许用户自行部署和管理流量中继节点,替代原有的DERP服务器。该功能可为受限网络环境提供更高吞吐量的连接,测试中性能接近直连,远优于托管DERP中继。Peer Relays仅服务于同一tailnet内且获得授权的节点,完全由客户控制。

文章总结

标题:Tailscale推出Peer Relays中继服务

Tailscale近日正式发布Peer Relays中继服务,作为其托管DERP服务器的替代方案。这项新服务允许用户在任何Tailscale节点上启用流量中继功能。

核心功能: 1. 用户可自主部署和管理流量中继机制 2. 中继节点可为尾网(tailnet)内所有节点转发流量 3. 相比托管DERP服务器,Peer Relays具有更高的吞吐量 4. 特别适用于受限制的云基础设施或严格防火墙环境

技术优势: - 测试显示其吞吐量接近直连效果 - 采用UDP协议降低延迟和资源开销 - 直接集成在Tailscale客户端中,部署简便

应用场景: 1. 突破云环境NAT网关限制(如AWS托管NAT网关) 2. 穿越严格网络防火墙 3. 减轻自定义DERP服务器负担 4. 为受保护客户网络提供可控访问路径

部署方式: 用户只需通过CLI命令tailscale set --relay-server-port即可启用,具体步骤详见官方文档。系统会优先尝试直连,其次使用Peer Relays,最后才回退到DERP服务。

当前状态: 该功能已作为公开测试版推出,所有用户(包括免费用户)均可使用2个中继节点。随着需求增长,用户可联系销售团队扩展节点数量。

(注:原文中的图片描述和部分技术细节已精简,保留了核心功能和应用价值信息)

评论总结

以下是评论内容的总结,涵盖主要观点和论据:

  1. 功能使用与配置问题

    • 用户询问共享设备间的权限设置(评论1):"How does this interact with machines that are shared from one Tailnet to another?"
    • 对移动设备使用中继的疑问(评论1):"Is there some reason that one should not set up a peer relay to enable a laptop to access a machine that is behind a NAT?"
  2. 性能与加密效率

    • 用户反映加密流量性能问题(评论3):"it seems have difficulty to saturate a 10Gbps connection while plain HTTP (nginx) traffic does that fine."
    • 希望提升加密传输效率(评论3):"any tips how to improve that?"
  3. 离线连接需求

    • 用户希望支持局域网离线连接(评论4):"If I have two devices on my local LAN... can find each other even if the internet connection to the wider world is broken."
  4. 与其他工具对比

    • 用户认为tinc更优(评论5):"All tinc nodes can work as relays... it does not rely on a centralized server, and works fine without access to the internet."
    • 建议改进方向(评论5):"The world would be better served by porting tinc to wireguard..."
  5. 功能改进建议

    • 用户提议自动路由功能(评论6):"have all tailscale clients automatically able to accept forwarding requests... so that the mesh seamlessly auto-routes around any breaks."
    • 对端口选择的建议(评论7):"Anyone got a better, mnemonically memorable choice in the low range?"
  6. 商业模式质疑

    • 用户对收费模式不满(评论10):"I have to pay to be able to donate my own infra to make tailscale's server better?"
  7. 功能认可与优化期待

    • 用户肯定新功能(评论11):"Great! This feature made a lot of sense..."
    • 性能优化建议(评论12):"tailscale DERP servers were always slow and made things feel delayed..."
    • 建议使用libp2p(评论13):"Why go through the effort of reimplementing all this instead of using libp2p?"
  8. 使用场景疑问

    • 用户询问典型用例(评论8):"What's the use case for this? It seems to be for situations where you might have a SaaS product..."

总结覆盖了技术细节、性能问题、功能改进、工具对比和商业模式等多元观点,保留了原始评论的关键引用。