Closed ghost closed 3 years ago
旁路由,WIFI连接主路由可以科学上网,但是有线连接主路由的Windows系统无法上网。 在yacd中把模式改为全局模式,Windows可以科学上网。
日志如下: OpenClash 调试日志
生成时间: 2020-11-06 21:41:59 插件版本: v0.40.7-beta
#===================== 系统信息 =====================# 主机型号: Phicomm N1 固件版本: OpenWrt SNAPSHOT r2851-1a8e65768 LuCI版本: git-20.223.26773-d18ef13-1 内核版本: 5.4.50-flippy-38+o 处理器架构: aarch64_generic #此项在使用Tun模式时应为ACCEPT 防火墙转发: ACCEPT #此项有值时建议到网络-接口-lan的设置中禁用IPV6的DHCP IPV6-DHCP: #此项结果应仅有配置文件的DNS监听地址 Dnsmasq转发设置: 127.0.0.1#7874 #===================== 依赖检查 =====================# dnsmasq-full: 已安装 coreutils: 已安装 coreutils-nohup: 已安装 bash: 已安装 curl: 已安装 jsonfilter: 已安装 ca-certificates: 已安装 ipset: 已安装 ip-full: 已安装 iptables-mod-tproxy: 已安装 kmod-tun(TUN模式): 已安装 luci-compat(Luci-19.07): 已安装 #===================== 内核检查 =====================# 运行状态: 运行中 已选择的架构: linux-armv8 #下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限 Tun内核版本: 2020.10.29.g5e54f48 Tun内核文件: 存在 Tun内核运行权限: 正常 Game内核版本: v0.17.0-219-g9ac38a4 Game内核文件: 存在 Game内核运行权限: 正常 Dev内核版本: v1.2.0-14-g87e4d94 Dev内核文件: 存在 Dev内核运行权限: 正常 #===================== 插件设置 =====================# 当前配置文件: /etc/openclash/config/Clash.2020.11.06.yaml 运行模式: fake-ip 默认代理模式: rule UDP流量转发: 启用 DNS劫持: 启用 自定义DNS: 启用 IPV6-DNS解析: 停用 禁用Dnsmasq缓存: 启用 自定义规则: 启用 仅允许内网: 启用 仅代理命中规则流量: 启用 绕过中国大陆IP: 停用 #启动异常时建议关闭此项后重试 保留配置: 停用 第三方规则: 停用 #===================== 自定义规则 一 =====================# ##- DOMAIN-SUFFIX,google.com,Proxy 匹配域名后缀(交由Proxy代理服务器组) ##- DOMAIN-KEYWORD,google,Proxy 匹配域名关键字(交由Proxy代理服务器组) ##- DOMAIN,google.com,Proxy 匹配域名(交由Proxy代理服务器组) ##- DOMAIN-SUFFIX,ad.com,REJECT 匹配域名后缀(拒绝) ##- IP-CIDR,127.0.0.0/8,DIRECT 匹配数据目标IP(直连) ##- SRC-IP-CIDR,192.168.1.201/32,DIRECT 匹配数据发起IP(直连) ##- DST-PORT,80,DIRECT 匹配数据目标端口(直连) ##- SRC-PORT,7777,DIRECT 匹配数据源端口(直连) ##排序在上的规则优先生效,如添加(去除规则前的#号): ##IP段:192.168.1.2-192.168.1.200 直连 ##- SRC-IP-CIDR,192.168.1.2/31,DIRECT ##- SRC-IP-CIDR,192.168.1.4/30,DIRECT ##- SRC-IP-CIDR,192.168.1.8/29,DIRECT ##- SRC-IP-CIDR,192.168.1.16/28,DIRECT ##- SRC-IP-CIDR,192.168.1.32/27,DIRECT ##- SRC-IP-CIDR,192.168.1.64/26,DIRECT ##- SRC-IP-CIDR,192.168.1.128/26,DIRECT ##- SRC-IP-CIDR,192.168.1.192/29,DIRECT ##- SRC-IP-CIDR,192.168.1.200/32,DIRECT ##IP段:192.168.1.202-192.168.1.255 直连 ##- SRC-IP-CIDR,192.168.1.202/31,DIRECT ##- SRC-IP-CIDR,192.168.1.204/30,DIRECT ##- SRC-IP-CIDR,192.168.1.208/28,DIRECT ##- SRC-IP-CIDR,192.168.1.224/27,DIRECT ##此时IP为192.168.1.1和192.168.1.201的客户端流量走代理(策略),其余客户端不走代理 ##因为Fake-IP模式下,IP地址为192.168.1.1的路由器自身流量可走代理(策略),所以需要排除 ##在线IP段转CIDR地址:http://ip2cidr.com #===================== 自定义规则 二 =====================# ##- DOMAIN-SUFFIX,google.com,Proxy 匹配域名后缀(交由Proxy代理服务器组) ##- DOMAIN-KEYWORD,google,Proxy 匹配域名关键字(交由Proxy代理服务器组) ##- DOMAIN,google.com,Proxy 匹配域名(交由Proxy代理服务器组) ##- DOMAIN-SUFFIX,ad.com,REJECT 匹配域名后缀(拒绝) ##- IP-CIDR,127.0.0.0/8,DIRECT 匹配数据目标IP(直连) ##- SRC-IP-CIDR,192.168.1.201/32,DIRECT 匹配数据发起IP(直连) ##- DST-PORT,80,DIRECT 匹配数据目标端口(直连) ##- SRC-PORT,7777,DIRECT 匹配数据源端口(直连) #===================== 配置文件 =====================# port: 7890 socks-port: 7891 allow-lan: true bind-address: "10.10.7.2" ipv6: false mode: rule log-level: silent external-controller: 10.10.7.2:9090 cfw-proxies-order: default cfw-bypass-bak: - qq.com - music.163.com - "*.music.126.net" - localhost - 127.* - 10.* - 172.16.* - 172.17.* - 172.18.* - 172.19.* - 172.20.* - 172.21.* - 172.22.* - 172.23.* - 172.24.* - 172.25.* - 172.26.* - 172.27.* - 172.28.* - 172.29.* - 172.30.* - 172.31.* - 192.168.* - 198.* - <local> redir-port: 7892 external-ui: "/usr/share/openclash/dashboard" dns: enable: true ipv6: false enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 listen: 127.0.0.1:7874 fake-ip-filter: ##Custom fake-ip-filter## - '*.lan' - 'time.windows.com' - 'time.nist.gov' - 'time.apple.com' - 'time.asia.apple.com' - '*.ntp.org.cn' - '*.openwrt.pool.ntp.org' - 'time1.cloud.tencent.com' - 'time.ustc.edu.cn' - 'pool.ntp.org' - 'ntp.ubuntu.com' - 'ntp.aliyun.com' - 'ntp1.aliyun.com' - 'ntp2.aliyun.com' - 'ntp3.aliyun.com' - 'ntp4.aliyun.com' - 'ntp5.aliyun.com' - 'ntp6.aliyun.com' - 'ntp7.aliyun.com' - 'time1.aliyun.com' - 'time2.aliyun.com' - 'time3.aliyun.com' - 'time4.aliyun.com' - 'time5.aliyun.com' - 'time6.aliyun.com' - 'time7.aliyun.com' - '*.time.edu.cn' - 'time1.apple.com' - 'time2.apple.com' - 'time3.apple.com' - 'time4.apple.com' - 'time5.apple.com' - 'time6.apple.com' - 'time7.apple.com' - 'time1.google.com' - 'time2.google.com' - 'time3.google.com' - 'time4.google.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' - 'localhost.ptlogin2.qq.com' - '*.*.*.srv.nintendo.net' - '*.*.stun.playstation.net' - 'xbox.*.*.microsoft.com' - '*.*.xboxlive.com' - 'proxy.golang.org' ##Custom fake-ip-filter END## nameserver: ##Custom DNS## - 119.29.29.29 - 223.5.5.5 fallback: - https://cloudflare-dns.com/dns-query - https://dns.google/dns-query - tls://dns.google:853 - https://1.1.1.1/dns-query - tls://1.1.1.1:853 - tls://8.8.8.8:853 fallback-filter: geoip: true ipcidr: - 0.0.0.0/8 - 10.0.0.0/8 - 100.64.0.0/10 - 127.0.0.0/8 - 169.254.0.0/16 - 172.16.0.0/12 - 192.0.0.0/24 - 192.0.2.0/24 - 192.88.99.0/24 - 192.168.0.0/16 - 198.18.0.0/15 - 198.51.100.0/24 - 203.0.113.0/24 - 224.0.0.0/4 - 240.0.0.0/4 - 255.255.255.255/32 #===================== 防火墙设置 =====================# #NAT chain Chain PREROUTING (policy ACCEPT) num target prot opt source destination 1 REDIRECT tcp -- 0.0.0.0/0 8.8.4.4 redir ports 7892 2 REDIRECT tcp -- 0.0.0.0/0 8.8.8.8 redir ports 7892 3 REDIRECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 redir ports 53 4 REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 redir ports 53 5 prerouting_rule all -- 0.0.0.0/0 0.0.0.0/0 /* !fw3: Custom prerouting rule chain */ 6 zone_lan_prerouting all -- 0.0.0.0/0 0.0.0.0/0 /* !fw3 */ 7 openclash tcp -- 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT) num target prot opt source destination 1 openclash_output tcp -- 0.0.0.0/0 0.0.0.0/0 #Mangle chain Chain PREROUTING (policy ACCEPT) num target prot opt source destination 1 openclash udp -- 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT) num target prot opt source destination #===================== 路由表状态 =====================# #route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.10.7.1 0.0.0.0 UG 0 0 0 eth0 10.10.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 #ip route list default via 10.10.7.1 dev eth0 proto static 10.10.7.0/24 dev eth0 proto kernel scope link src 10.10.7.2 #ip rule show 0: from all lookup local 32765: from all fwmark 0x162 lookup 354 32766: from all lookup main 32767: from all lookup default #===================== 端口占用状态 =====================# tcp 0 0 10.10.7.2:7890 0.0.0.0:* LISTEN 2040/clash tcp 0 0 10.10.7.2:7891 0.0.0.0:* LISTEN 2040/clash tcp 0 0 10.10.7.2:9090 0.0.0.0:* LISTEN 2040/clash tcp 0 0 :::7892 :::* LISTEN 2040/clash udp 0 0 127.0.0.1:7874 0.0.0.0:* 2040/clash udp 0 0 10.10.7.2:7891 0.0.0.0:* 2040/clash udp 0 0 :::58600 :::* 2040/clash udp 0 0 :::49834 :::* 2040/clash udp 0 0 :::7892 :::* 2040/clash udp 0 0 :::58176 :::* 2040/clash #===================== 测试本机DNS查询 =====================# Server: 127.0.0.1 Address: 127.0.0.1#53 Name: www.baidu.com Address 1: 198.18.0.27 *** Can't find www.baidu.com: No answer #===================== resolv.conf.d =====================# # Interface lan nameserver 10.10.7.1 #===================== 测试本机网络连接 =====================# HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform Connection: keep-alive Content-Length: 277 Content-Type: text/html Date: Fri, 06 Nov 2020 13:42:00 GMT Etag: "575e1f72-115" Last-Modified: Mon, 13 Jun 2016 02:50:26 GMT Pragma: no-cache Server: bfe/1.0.8.18 #===================== 测试本机网络下载 =====================# HTTP/1.1 200 Connection established HTTP/1.1 200 OK Connection: keep-alive Content-Length: 80 Cache-Control: max-age=300 Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Content-Type: text/plain; charset=utf-8 ETag: "d30e627954475a5bfdb3d5cddabaf42949acf0969d5da3dbdcd657eda7822520" Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block Via: 1.1 varnish (Varnish/6.0), 1.1 varnish X-GitHub-Request-Id: 5636:6C2A:6A82E8:83DF03:5FA55133 Accept-Ranges: bytes Date: Fri, 06 Nov 2020 13:42:00 GMT X-Served-By: cache-hkg17927-HKG X-Cache: HIT, HIT X-Cache-Hits: 2, 1 X-Timer: S1604670121.777052,VS0,VE1 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: df81797c4033d7b250c62435e7d564f66315126d Expires: Fri, 06 Nov 2020 13:47:00 GMT Source-Age: 120 #===================== 最近运行日志 =====================# time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 📲 电报信息" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🍃 应用净化" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider Ⓜ️ 微软服务" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider ♻️ 自动选择" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🚀 节点选择" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🐟 漏网之鱼" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🍎 苹果服务" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🎯 全球直连" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🛑 全球拦截" time="2020-11-06T13:06:25Z" level=info msg="Start initial compatible provider 🌍 国外媒体" 2020-11-06 21:05:39 OpenClash Start Successful 2020-11-06 21:06:32 Reload OpenClash Firewall Rules
补充下,Windows下用虚拟机安装Windows系统没有这个问题,安装安卓模拟器也没有这个问题......
是不是开了windows下的手动设置代理,关掉试试
重装系统之后好了,并不知道什么原因导致。非代理设置问题,windows的系统配置我检查过了没有问题,只有在openclash里面设置全局模式时候才可以科学上网。但是问题解决。
旁路由,WIFI连接主路由可以科学上网,但是有线连接主路由的Windows系统无法上网。 在yacd中把模式改为全局模式,Windows可以科学上网。
日志如下: OpenClash 调试日志
生成时间: 2020-11-06 21:41:59 插件版本: v0.40.7-beta