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

clash verge 的 tun 模式下,怎么屏蔽局域网域名呀

  •  
  •   Chatterleys · 1 天前 · 905 次点击
    使用 cursor 需要 tun 模式,但是开了局域网域名就打不开了
    10 条回复    2026-01-16 09:39:14 +08:00
    maxwellz
        1
    maxwellz  
       1 天前
    我也想问,有些只有内网才能访问的域名每次都要手动切换
    paradoxs
        2
    paradoxs  
       1 天前
    - GEOIP,LAN,DIRECT
    lightionight
        3
    lightionight  
       1 天前
    应该用 dns 里面的 use_host: true, 然后修改 etc/hosts 里面的局域网域名指向
    superkkk
        4
    superkkk  
       1 天前
    cursor 不能配置一下 http 代理吗,别走虚拟网卡了。具体咋配置我也忘了,我记得很久之前试过
    microscopec
        5
    microscopec  
       1 天前
    - DOMAIN-SUFFIX,xxx.xxx.con,DIRECT,no-resolve
    - DOMAIN-SUFFIX,git.xxx.cn,DIRECT,no-resolve

    把你的域名或者 ip 写进脚本后重启
    furlxy
        6
    furlxy  
       1 天前
    ```
    # Profile Enhancement Merge Template for Clash Verge

    profile:
    store-selected: true

    dns:
    nameserver-policy:
    "+.内网域名": "192.168.0.1"
    ```

    把上面的写到全局扩展覆写配置
    xiaotan5
        7
    xiaotan5  
       1 天前
    1.我用 cursor 代理即可
    2.首页-系统代理-小齿轮可以直接排除,完全不走代理软件
    3.右键订阅-编辑规则-添加前置规则,不知道选什么问问 ai
    lusi1990
        8
    lusi1990  
       1 天前 via iPhone
    为什么我不开 tun 一样用? 有什么不一样吗?
    calmWei
        9
    calmWei  
       1 天前   ❤️ 2
    订阅,全局扩展脚本,把里面的域名换成自己的


    // Define main function (script entry)

    /**
    * 配置中的规则"config.rules"是一个数组,通过新旧数组合并来添加
    * @param prependRule 添加的数组
    */
    const prependRule = [
    // 将百度分流到直连
    "DOMAIN-SUFFIX,baidu.com,DIRECT",
    ];
    function main(config) {
    // 把旧规则合并到新规则后面(也可以用其它合并数组的办法)
    let oldrules = config["rules"];
    config["rules"] = prependRule.concat(oldrules);
    return config;
    }
    ngbs
        10
    ngbs  
       22 小时 4 分钟前
    开启 dns 覆写,回退 dns 服务器填写内网 dns 服务器
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1083 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:44 · PVG 07:44 · LAX 15:44 · JFK 18:44
    ♥ Do have faith in what you're doing.