Skip to content

开启 TUN 模式,路由选择避开局域网和大陆,访问国内网站速度比较慢。 #1690

Description

@houzy

提交 Issue 之前请先在issue上搜索是否有相似问题, 看看能不能解决问题 (有太多相同的issue,没精力处理)。
除非特殊情况,请完整填写以下所有问题,不按模板发的 issue 将直接被关闭。

  1. 你正在使用的 V2RayU 和 Mac 版本 ?
    V2RayU 5.2.0
    Mac Tahoe V26

  2. 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
    开启 TUN 模式,路由选择避开局域网和大陆,访问国内网站速度比较慢。

  3. 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

    {
  "dns" : {
    "final" : "remote-dns",
    "independent_cache" : true,
    "rules" : [
      {
        "domain" : [
          "localhost",
          "local"
        ],
        "server" : "local-dns"
      },
      {
        "domain" : [
          "xxxxxxx.ccwu.cc"
        ],
        "server" : "direct-dns"
      }
    ],
    "servers" : [
      {
        "server" : "223.5.5.5",
        "tag" : "local-dns",
        "type" : "udp"
      },
      {
        "server" : "223.5.5.5",
        "tag" : "direct-dns",
        "type" : "udp"
      },
      {
        "detour" : "proxy",
        "domain_resolver" : "local-dns",
        "path" : "\/dns-query",
        "server" : "cloudflare-dns.com",
        "tag" : "remote-dns",
        "type" : "https"
      }
    ],
    "strategy" : "prefer_ipv4"
  },
  "experimental" : {
    "clash_api" : {
      "external_controller" : "127.0.0.1:11111",
      "secret" : ""
    }
  },
  "inbounds" : [
    {
      "listen" : "127.0.0.1",
      "listen_port" : 1087,
      "tag" : "http-in",
      "type" : "http"
    },
    {
      "listen" : "127.0.0.1",
      "listen_port" : 1080,
      "tag" : "socks-in",
      "type" : "socks"
    }
  ],
  "log" : {
    "level" : "info",
    "output" : "\/Users\/xxxxxx\/.V2rayU\/core.log",
    "timestamp" : true
  },
  "outbounds" : [
    {
      "domain_resolver" : "direct-dns",
      "flow" : "",
      "server" : "xxxxxxx.ccwu.cc",
      "server_port" : 443,
      "tag" : "proxy",
      "tls" : {
        "alpn" : [

        ],
        "enabled" : true,
        "insecure" : true,
        "server_name" : "xxxxxxx.ccwu.cc",
        "utls" : {
          "enabled" : true,
          "fingerprint" : "chrome"
        }
      },
      "transport" : {
        "headers" : {
          "Host" : "xxxxxxx.ccwu.cc"
        },
        "path" : "\/6cc0f01d-9d8e-412a-a4bd-32fedaec5d17",
        "type" : "ws"
      },
      "type" : "vless",
      "uuid" : "6cc0f01d-9d8e-412a-a4bd-32fedaec5d17"
    },
    {
      "tag" : "direct",
      "type" : "direct"
    }
  ],
  "route" : {
    "auto_detect_interface" : true,
    "default_domain_resolver" : "local-dns",
    "rule_set" : [
      {
        "format" : "binary",
        "path" : "\/usr\/local\/v2rayu\/bin\/sing-box\/rule-set\/geoip-cn.srs",
        "tag" : "geoip-cn",
        "type" : "local"
      },
      {
        "format" : "binary",
        "path" : "\/usr\/local\/v2rayu\/bin\/sing-box\/rule-set\/geosite-category-ads-all.srs",
        "tag" : "geosite-category-ads-all",
        "type" : "local"
      },
      {
        "format" : "binary",
        "path" : "\/usr\/local\/v2rayu\/bin\/sing-box\/rule-set\/geosite-cn.srs",
        "tag" : "geosite-cn",
        "type" : "local"
      },
      {
        "format" : "binary",
        "path" : "\/usr\/local\/v2rayu\/bin\/sing-box\/rule-set\/geosite-geolocation-!cn.srs",
        "tag" : "geosite-geolocation-!cn",
        "type" : "local"
      }
    ],
    "rules" : [
      {
        "action" : "sniff"
      },
      {
        "action" : "reject",
        "network" : [
          "udp"
        ],
        "port" : [
          443
        ]
      },
      {
        "action" : "reject",
        "rule_set" : [
          "geosite-category-ads-all"
        ]
      },
      {
        "outbound" : "proxy",
        "rule_set" : [
          "geosite-geolocation-!cn"
        ]
      },
      {
        "domain" : [
          "localhost"
        ],
        "outbound" : "direct"
      },
      {
        "outbound" : "direct",
        "rule_set" : [
          "geosite-cn"
        ]
      },
      {
        "ip_is_private" : true,
        "outbound" : "direct"
      },
      {
        "outbound" : "direct",
        "rule_set" : [
          "geoip-cn"
        ]
      },
      {
        "domain" : [
          "alidns.com",
          "doh.pub",
          "dot.pub",
          "360.cn",
          "onedns.net"
        ],
        "outbound" : "direct"
      },
      {
        "ip_cidr" : [
          "223.5.5.5",
          "223.6.6.6",
          "2400:3200::1",
          "2400:3200:baba::1",
          "119.29.29.29",
          "1.12.12.12",
          "120.53.53.53",
          "2402:4e00::",
          "2402:4e00:1::",
          "180.76.76.76",
          "2400:da00::6666",
          "114.114.114.114",
          "114.114.115.115",
          "114.114.114.119",
          "114.114.115.119",
          "114.114.114.110",
          "114.114.115.110",
          "180.184.1.1",
          "180.184.2.2",
          "101.226.4.6",
          "218.30.118.6",
          "123.125.81.6",
          "140.207.198.6",
          "1.2.4.8",
          "210.2.4.8",
          "52.80.66.66",
          "117.50.22.22",
          "2400:7fc0:849e:200::4",
          "2404:c2c0:85d8:901::4",
          "117.50.10.10",
          "52.80.52.52",
          "2400:7fc0:849e:200::8",
          "2404:c2c0:85d8:901::8",
          "117.50.60.30",
          "52.80.60.30"
        ],
        "outbound" : "direct"
      },
      {
        "invert" : true,
        "outbound" : "proxy",
        "rule_set" : [
          "geoip-cn"
        ]
      }
    ]
  }
}
  1. 请附上出错时软件输出的错误日志。
    没有看到报错。

请预览一下你填的内容再提交。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions