V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zbzzhh
V2EX  ›  问与答

请教下 duckdns 的问题

  •  
  •   zbzzhh · 2023-04-25 01:11:20 +08:00 · 736 次点击
    这是一个创建于 369 天前的主题,其中的信息可能已经有所发展或是发生改变。

    情况说明:

    1 、没有公网

    2 、需求是访问家里套了 duckdns 的 bitwarden

    3 、目前在外是通过改 host 加 tailscale 的方式访问 bitwarden

    想请教下,只能通过改 host 才能访问家里的服务吗?如果非得这样,那么移动端该如何访问?

    6 条回复    2023-04-27 02:59:05 +08:00
    luckjoe680
        1
    luckjoe680  
       2023-04-25 07:31:40 +08:00 via Android
    你没有公网套 duckdns 是有什么用呢?
    zbzzhh
        2
    zbzzhh  
    OP
       2023-04-25 08:33:09 +08:00 via iPhone
    @luckjoe680 用来给服务上 https
    totoro625
        3
    totoro625  
       2023-04-25 09:05:54 +08:00
    1 、试试最新的 Tailscale 新功能 Tailscale Funnel: https://tailscale.com/kb/1223/tailscale-funnel/
    2 、cloudflared tunnel 内网穿透
    3 、frp 内网穿透
    zbzzhh
        4
    zbzzhh  
    OP
       2023-04-25 09:16:38 +08:00 via iPhone
    @totoro625 好的 谢谢 我试试
    luckjoe680
        5
    luckjoe680  
       2023-04-25 13:43:30 +08:00 via Android
    @zbzzhh 没有公网 ip 的话 用自签名的就行了
    zbzzhh
        6
    zbzzhh  
    OP
       2023-04-27 02:59:05 +08:00 via iPhone
    @totoro625
    研读了 tailscale 文档发现是 DNS REBINDING PROTECTION 的问题,如下:

    DNS servers that have DNS rebinding protection enabled will block DNS responses that include a private IP address. On the public Internet, that does not cause any problems because public websites do not use private IP addresses. When accessing devices on your private network, this becomes an issue if the DNS names of those devices are visible to public DNS servers because sometimes those DNS responses will be blocked.

    试了下官方的一个临时方法解决了:

    Use the Tailscale DNS configuration with the ‘override local DNS’ option enabled to send all DNS queries (other than MagicDNS or domain names configured to use specific nameservers) to a public DNS service that does not include DNS rebinding protection. This is similar to the previous option but applies to the entire tailnet.

    谢谢各位,现在可以通过 tailscale 访问 duckdns 记录的内网 ip 域名了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   996 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:19 · PVG 03:19 · LAX 12:19 · JFK 15:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.