V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wesleyqiu
V2EX  ›  Synology

群晖默认网关为旁路由时无法获取公网 ip

  •  
  •   wesleyqiu · 26 天前 · 437 次点击

    之前购买的 no-ip 域名并用路由器自带的 ddns 解析。 今天才知道群晖自带这个功能,而且群晖有 13 种免费的域名可用,但有个问题就是默认网关必须为主路由 ip 才能获取到正确的公网 ip 。由于群晖上安装的很多服务(有套件也有 docker 容器)都必须连国际互联网,所以默认网关选的是作为旁路由的 openwrt 软路由 ip ,此时群晖自带 ddns 获取的公网 ip 自然是错误的。 有鱼和熊掌兼得的办法吗?顺便说一下,openwrt 装在群晖虚拟机里面。

    3 条回复    2024-05-30 23:37:40 +08:00
    wesleyqiu
        1
    wesleyqiu  
    OP
       26 天前
    自问自答,好像把群晖运行服务所需访问的一些网站域名加入直连就可以了。参考 https://github.com/vernesong/OpenClash/issues/345
    povsister
        2
    povsister  
       26 天前
    当局者迷,你就不能把群晖的 DDNS 上报域名改成直连吗...
    wesleyqiu
        3
    wesleyqiu  
    OP
       26 天前 via Android
    @povsister 具体怎么设置,跟我说的那个方法是一个意思吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3700 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 05:14 · PVG 13:14 · LAX 22:14 · JFK 01:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.