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

mihomo 访问网页问题

  •  
  •   guzzhao · 16 天前 · 852 次点击

    重启核心后第一次访问外网网页很大概率会出现连接错误,过一两秒会自动刷新变正常了,走直连的一直正常,我怀疑是 dns 的问题,怎么改都不好使

    嗯...无法访问此页面
    似乎 www.google.com 关闭连接

    我直接运行的内核,下面是我的配置

    
    allow-lan: false
    bind-address: '*'
    dns:
        default-nameserver:
            - 223.5.5.5
            - 119.29.29.29
        enable: true
        enhanced-mode: fake-ip
        fake-ip-filter:
            - '*.lan'
            - '*.localdomain'
            - '*.example'
            - '*.invalid'
            - '*.localhost'
            - '*.test'
            - '*.local'
            - '*.home.arpa'
            - time.*.com
            - time.*.gov
            - time.*.edu.cn
            - time.*.apple.com
            - time1.*.com
            - time2.*.com
            - time3.*.com
            - time4.*.com
            - time5.*.com
            - time6.*.com
            - time7.*.com
            - ntp.*.com
            - ntp1.*.com
            - ntp2.*.com
            - ntp3.*.com
            - ntp4.*.com
            - ntp5.*.com
            - ntp6.*.com
            - ntp7.*.com
            - '*.time.edu.cn'
            - '*.ntp.org.cn'
            - +.pool.ntp.org
            - time1.cloud.tencent.com
            - music.163.com
            - '*.music.163.com'
            - '*.126.net'
            - musicapi.taihe.com
            - music.taihe.com
            - songsearch.kugou.com
            - trackercdn.kugou.com
            - '*.kuwo.cn'
            - api-jooxtt.sanook.com
            - api.joox.com
            - joox.com
            - y.qq.com
            - '*.y.qq.com'
            - streamoc.music.tc.qq.com
            - mobileoc.music.tc.qq.com
            - isure.stream.qqmusic.qq.com
            - dl.stream.qqmusic.qq.com
            - aqqmusic.tc.qq.com
            - amobile.music.tc.qq.com
            - '*.xiami.com'
            - '*.music.migu.cn'
            - music.migu.cn
            - +.msftconnecttest.com
            - +.msftncsi.com
            - msftconnecttest.com
            - msftncsi.com
            - localhost.ptlogin2.qq.com
            - localhost.sec.qq.com
            - +.srv.nintendo.net
            - +.stun.playstation.net
            - xbox.*.microsoft.com
            - xnotify.xboxlive.com
            - +.ipv6.microsoft.com
            - +.battlenet.com.cn
            - +.wotgame.cn
            - +.wggames.cn
            - +.wowsgame.cn
            - +.wargaming.net
            - proxy.golang.org
            - stun.*.*
            - stun.*.*.*
            - +.stun.*.*
            - +.stun.*.*.*
            - +.stun.*.*.*.*
            - heartbeat.belkin.com
            - '*.linksys.com'
            - '*.linksyssmartwifi.com'
            - '*.router.asus.com'
            - mesu.apple.com
            - swscan.apple.com
            - swquery.apple.com
            - swdownload.apple.com
            - swcdn.apple.com
            - swdist.apple.com
            - lens.l.google.com
            - stun.l.google.com
            - '*.square-enix.com'
            - '*.finalfantasyxiv.com'
            - '*.ffxiv.com'
            - '*.ff14.sdo.com'
            - ff.dorado.sdo.com
            - '*.mcdn.bilivideo.cn'
            - +.media.dssott.com
            - +.pvp.net
        fake-ip-range: 28.0.0.1/8
        ipv6: false
        listen: 0.0.0.0:1053
        nameserver:
            - 223.5.5.5
            - 114.114.114.114
            - 119.29.29.29
            - 180.76.76.76
        nameserver-policy:
            geosite:cn,private:
                - system
                - 223.5.5.5
                - 114.114.114.114
                - 119.29.29.29
                - 180.76.76.76
            geosite:geolocation-!cn:
                - 8.8.4.4
                - 1.1.1.1
                - 199.85.126.10
        use-hosts: true
    external-controller: 127.0.0.1:11232
    external-controller-unix: mihomo.sock
    external-ui: ui
    external-ui-url: https://www.ghproxy.cn/https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip
    geo-auto-update: true
    geo-update-interval: 24
    geodata-mode: true
    geox-url:
        geoip: https://www.ghproxy.cn/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat
        geosite: https://www.ghproxy.cn/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat
        mmdb: https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb
    ipv6: true
    keep-alive-interval: 15
    log-level: info
    mixed-port: 11231
    mode: rule
    profile:
        store-fake-ip: true
        store-selected: true
    proxy-groups:
      
    proxy-providers:
    
    rules:
        - GEOSITE,openai,openai
        - GEOSITE,youtube,youtube
        - "GEOSITE,github,🚀 节点选择"
        - GEOSITE,win-update,DIRECT
        - GEOSITE,microsoft,microsoft
        - GEOIP,lan,DIRECT
        - GEOIP,private,DIRECT
        - GEOIP,CN,DIRECT
        - GEOSITE,private,DIRECT
        - GEOSITE,CN,DIRECT
        - "GEOSITE,geolocation-!cn,🚀 节点选择"
        - "MATCH,🐟 漏网之鱼"
    secret: secret
    sniffer:
        enable: false
    tcp-concurrent: true
    tun:
        auto-detect-interface: true
        auto-route: true
        device: Meta
        dns-hijack:
            - any:53
            - tcp://any:53
        enable: false
        mtu: 9000
        stack: mixed
    unified-delay: true
    
    
    
    
    7 条回复    2025-01-24 09:32:29 +08:00
    guzzhao
        1
    guzzhao  
    OP
       16 天前
    totoro625
        2
    totoro625  
       16 天前   ❤️ 1
    fake-ip-range: 28.0.0.1/8 请勿用公网 IP 作为 fakeip
    可以用 198.18.0.1/16
    totoro625
        3
    totoro625  
       16 天前
    ipv6 如非必要应当关闭
    guzzhao
        4
    guzzhao  
    OP
       16 天前
    @totoro625 #2 多谢,我试一试
    butanediol2d
        5
    butanediol2d  
       7 天前
    OP 解决了吗?

    这个问题我也遇到过,Google 和 Reddit 尤其频繁,不知道是不是因为这两个网站本身访问比较频繁。

    而且我的 fake-ip-range 一直都是 198.18.0.1/16 ,ipv6 也是关闭的。
    guzzhao
        6
    guzzhao  
    OP
       6 天前
    @butanediol2d #5 有点效果 这是我现在的 dns 配置

    ```yml


    dns:
    default-nameserver:
    - 223.5.5.5
    - 119.29.29.29
    enable: true
    enhanced-mode: fake-ip
    fake-ip-filter:
    - '*.lan'
    - '*.localdomain'
    - '*.example'
    - '*.invalid'
    - '*.localhost'
    - '*.test'
    - '*.local'
    - '*.home.arpa'
    - time.*.com
    - time.*.gov
    - time.*.edu.cn
    - time.*.apple.com
    - time1.*.com
    - time2.*.com
    - time3.*.com
    - time4.*.com
    - time5.*.com
    - time6.*.com
    - time7.*.com
    - ntp.*.com
    - ntp1.*.com
    - ntp2.*.com
    - ntp3.*.com
    - ntp4.*.com
    - ntp5.*.com
    - ntp6.*.com
    - ntp7.*.com
    - '*.time.edu.cn'
    - '*.ntp.org.cn'
    - +.pool.ntp.org
    - time1.cloud.tencent.com
    - music.163.com
    - '*.music.163.com'
    - '*.126.net'
    - musicapi.taihe.com
    - music.taihe.com
    - songsearch.kugou.com
    - trackercdn.kugou.com
    - '*.kuwo.cn'
    - api-jooxtt.sanook.com
    - api.joox.com
    - joox.com
    - y.qq.com
    - '*.y.qq.com'
    - streamoc.music.tc.qq.com
    - mobileoc.music.tc.qq.com
    - isure.stream.qqmusic.qq.com
    - dl.stream.qqmusic.qq.com
    - aqqmusic.tc.qq.com
    - amobile.music.tc.qq.com
    - '*.xiami.com'
    - '*.music.migu.cn'
    - music.migu.cn
    - +.msftconnecttest.com
    - +.msftncsi.com
    - msftconnecttest.com
    - msftncsi.com
    - localhost.ptlogin2.qq.com
    - localhost.sec.qq.com
    - +.srv.nintendo.net
    - +.stun.playstation.net
    - xbox.*.microsoft.com
    - xnotify.xboxlive.com
    - +.ipv6.microsoft.com
    - +.battlenet.com.cn
    - +.wotgame.cn
    - +.wggames.cn
    - +.wowsgame.cn
    - +.wargaming.net
    - proxy.golang.org
    - stun.*.*
    - stun.*.*.*
    - +.stun.*.*
    - +.stun.*.*.*
    - +.stun.*.*.*.*
    - heartbeat.belkin.com
    - '*.linksys.com'
    - '*.linksyssmartwifi.com'
    - '*.router.asus.com'
    - mesu.apple.com
    - swscan.apple.com
    - swquery.apple.com
    - swdownload.apple.com
    - swcdn.apple.com
    - swdist.apple.com
    - lens.l.google.com
    - stun.l.google.com
    - '*.square-enix.com'
    - '*.finalfantasyxiv.com'
    - '*.ffxiv.com'
    - '*.ff14.sdo.com'
    - ff.dorado.sdo.com
    - '*.mcdn.bilivideo.cn'
    - +.media.dssott.com
    - +.pvp.net
    fake-ip-range: 198.18.0.1/16
    ipv6: false
    listen: 0.0.0.0:1053
    nameserver:
    - 223.5.5.5
    - 114.114.114.114
    - 119.29.29.29
    - 180.76.76.76
    nameserver-policy:
    geosite:cn,private:
    - system
    - 223.5.5.5
    - 114.114.114.114
    - 119.29.29.29
    - 180.76.76.76
    geosite:geolocation-!cn:
    - 8.8.4.4
    - 1.1.1.1
    - 8.8.8.8
    use-hosts: true

    ```
    guzzhao
        7
    guzzhao  
    OP
       6 天前
    @butanediol2d #5 不过还是有问题,主要是 google 和 V2EX ,可能也是因为访问频繁
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1739 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 15:50 · PVG 23:50 · LAX 07:50 · JFK 10:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.