vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.69k stars 3.08k forks source link

错误: 配置文件DNS选项下的Nameserver必须设置服务器,已停止设置自定义DNS服务器! #1594

Closed ghost closed 3 years ago

ghost commented 3 years ago

更新了最新版本后出现的错误,配置文件一直没变过,之前没见过这个错误,但实际好像不影响启动和使用,请问是我配置文件哪里缺了什么吗?

OpenClash 调试日志

生成时间: 2021-09-05 08:24:28 插件版本: v0.43.03-beta 隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息


#===================== 系统信息 =====================#

主机型号: Default string Default string
固件版本: OpenWrt 21.02.0 r16279-5cc0535800
LuCI版本: git-20.074.84698-ead5e81
内核版本: 5.4.143
处理器架构: x86_64

#此项有值时,如不使用IPv6,建议到网络-接口-lan的设置中禁用IPV6的DHCP
IPV6-DHCP: 

#此项结果应仅有配置文件的DNS监听地址
Dnsmasq转发设置: 127.0.0.1#7874

#===================== 依赖检查 =====================#

dnsmasq-full: 已安装
coreutils: 已安装
coreutils-nohup: 已安装
bash: 已安装
curl: 已安装
ca-certificates: 已安装
ipset: 已安装
ip-full: 已安装
iptables-mod-tproxy: 已安装
kmod-ipt-tproxy: 已安装
iptables-mod-extra: 已安装
kmod-ipt-extra: 已安装
libcap: 已安装
libcap-bin: 已安装
ruby: 已安装
ruby-yaml: 已安装
ruby-psych: 已安装
ruby-pstore: 已安装
ruby-dbm: 已安装
kmod-tun(TUN模式): 已安装
luci-compat(Luci-19.07): 已安装

#===================== 内核检查 =====================#

运行状态: 运行中
进程pid: 24477
运行权限: 24477: cap_dac_override,cap_net_bind_service,cap_net_admin,cap_net_raw,cap_sys_resource=eip
运行用户: nobody
已选择的架构: linux-amd64

#下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限
Tun内核版本: 2021.07.03
Tun内核文件: 存在
Tun内核运行权限: 正常

Game内核版本: 20210310-101-g00184a0
Game内核文件: 存在
Game内核运行权限: 正常

Dev内核版本: v1.6.5-34-g7d20097
Dev内核文件: 存在
Dev内核运行权限: 正常

#===================== 插件设置 =====================#

当前配置文件: /etc/openclash/config/config.yaml
启动配置文件: /etc/openclash/config.yaml
运行模式: fake-ip-mix
默认代理模式: rule
UDP流量转发(tproxy): 停用
DNS劫持: 启用
自定义DNS: 停用
IPV6代理: 停用
IPV6-DNS解析: 停用
禁用Dnsmasq缓存: 启用
自定义规则: 启用
仅允许内网: 停用
仅代理命中规则流量: 停用
仅允许常用端口流量: 停用
绕过中国大陆IP: 停用

#启动异常时建议关闭此项后重试
混合节点: 停用
保留配置: 停用

#启动异常时建议关闭此项后重试
第三方规则: 停用

#===================== 自定义规则 一 =====================#
#
#===================== 自定义规则 二 =====================#
#
#===================== 配置文件 =====================#

port: 7890
socks-port: 7891
redir-port: 7892
dns:
  enable: true
  ipv6: false
  listen: 127.0.0.1:7874
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  nameserver:
  - 119.29.29.29
  - 223.5.5.5
  - 1.2.4.8
  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"
  default-nameserver:
  - 119.29.29.29
  - 223.5.5.5
  - 1.2.4.8
proxy-groups:
- name: ROUTE
  type: fallback
  disable-udp: false
  proxies:
  - FAST
  - DIRECT
  url: http://cp.cloudflare.com/generate_204
  interval: '3600'
- name: FAST
  type: url-test
  disable-udp: false
  proxies:
  - CN-HK1
  - CN-TW1
  - CN-US1
  - CN2-HK1
  - CN2-TW1
  - CN2-US1
  url: http://cp.cloudflare.com/generate_204
  interval: '3600'
  tolerance: '0'
- name: HK
  type: url-test
  disable-udp: false
  proxies:
  - CN-HK1
  - CN2-HK1
  url: http://cp.cloudflare.com/generate_204
  interval: '3600'
  tolerance: '0'
- name: US
  type: url-test
  disable-udp: false
  proxies:
  - CN-US1
  - CN2-US1
  url: http://cp.cloudflare.com/generate_204
  interval: '3600'
  tolerance: '0'
- name: TW
  type: url-test
  disable-udp: false
  proxies:
  - CN-TW1
  - CN2-TW1
  url: http://cp.cloudflare.com/generate_204
  interval: '3600'
  tolerance: '0'
- name: NETFLIX
  type: fallback
  url: https://www.netflix.com/title/80018499
  interval: '3600'
  disable-udp: false
  proxies:
  - TW
  - HK
  - US
rules:
- RULE-SET,Netflix(By lhie1),NETFLIX
- RULE-SET,HBO(By lhie1),US
- RULE-SET,PBS(By lhie1),US
- RULE-SET,Hulu(By lhie1),US
- RULE-SET,Disney Plus,US
- RULE-SET,Now-E,HK
- RULE-SET,ViuTV(By lhie1),HK
- RULE-SET,LINE-TV,TW
- RULE-SET,KKTV(By lhie1),TW
- RULE-SET,Bahamut(By lhie1),TW
- RULE-SET,广告规则(By lhie1),REJECT
- RULE-SET,隐私规则合集,REJECT
- RULE-SET,反劫持规则,REJECT
- DOMAIN-SUFFIX,local,DIRECT
- IP-CIDR,127.0.0.0/8,DIRECT
- IP-CIDR,172.16.0.0/12,DIRECT
- IP-CIDR,192.168.0.0/16,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT
- IP-CIDR,100.64.0.0/10,DIRECT
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
- GEOIP,CN,DIRECT
- MATCH,ROUTE
tproxy-port: 7895
mixed-port: 7893
mode: rule
log-level: silent
allow-lan: true
external-controller: 0.0.0.0:9090
bind-address: "*"
external-ui: "/usr/share/openclash/dashboard"
ipv6: false
tun:
  enable: true
  stack: system
  dns-hijack:
  - tcp://8.8.8.8:53
  - tcp://8.8.4.4:53
profile:
  store-selected: true
rule-providers:
  反劫持规则:
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Hijacking.yaml"
    url: https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/Guard/Hijacking.yaml
    interval: 86400
  隐私规则合集:
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Privacy.yaml"
    url: https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/Guard/Privacy.yaml
    interval: 86400
  广告规则(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Reject.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Reject.yaml
    interval: 86400
  Bahamut(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Bahamut-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/Bahamut.yaml
    interval: 86400
  KKTV(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/KKTV-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/KKTV.yaml
    interval: 86400
  LINE-TV:
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/LINE-TV.yaml"
    url: https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/StreamingMedia/Video/LINE-TV.yaml
    interval: 86400
  ViuTV(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/ViuTV-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/ViuTV.yaml
    interval: 86400
  Now-E:
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Now-E.yaml"
    url: https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/StreamingMedia/Video/Now-E.yaml
    interval: 86400
  Disney Plus:
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Disney Plus.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/Disney%20Plus.yaml
    interval: 86400
  Hulu(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Hulu-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/Hulu.yaml
    interval: 86400
  PBS(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/PBS-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/PBS.yaml
    interval: 86400
  HBO(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/HBO-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/HBO.yaml
    interval: 86400
  Netflix(By lhie1):
    type: http
    behavior: classical
    path: "/etc/openclash/rule_provider/Netflix-lhie1.yaml"
    url: https://cdn.jsdelivr.net/gh/lhie1/Rules@master/Clash/Provider/Media/Netflix.yaml
    interval: 86400
interface-name: eth0

#===================== 防火墙设置 =====================#

#IPv4 NAT chain

# Generated by iptables-save v1.8.7 on Sun Sep  5 08:24:29 2021
*nat
:PREROUTING ACCEPT [933:366709]
:INPUT ACCEPT [1693:131477]
:OUTPUT ACCEPT [2023:141788]
:POSTROUTING ACCEPT [791:63072]
:MINIUPNPD - [0:0]
:MINIUPNPD-POSTROUTING - [0:0]
:openclash - [0:0]
:openclash_output - [0:0]
:postrouting_lan_rule - [0:0]
:postrouting_rule - [0:0]
:postrouting_wan_rule - [0:0]
:prerouting_lan_rule - [0:0]
:prerouting_rule - [0:0]
:prerouting_wan_rule - [0:0]
:zone_lan_postrouting - [0:0]
:zone_lan_prerouting - [0:0]
:zone_wan_postrouting - [0:0]
:zone_wan_prerouting - [0:0]
-A PREROUTING -d 8.8.4.4/32 -p tcp -m tcp --dport 53 -j ACCEPT
-A PREROUTING -d 8.8.8.8/32 -p tcp -m tcp --dport 53 -j ACCEPT
-A PREROUTING -p tcp -m tcp --dport 53 -m comment --comment "DNS Hijack" -j REDIRECT --to-ports 53
-A PREROUTING -p udp -m udp --dport 53 -m comment --comment "DNS Hijack" -j REDIRECT --to-ports 53
-A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
-A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
-A PREROUTING -i eth0 -m comment --comment "!fw3" -j zone_wan_prerouting
-A PREROUTING -p tcp -j openclash
-A OUTPUT -j openclash_output
-A POSTROUTING -s 10.242.0.0/16 -j MASQUERADE
-A POSTROUTING -o ztzlgmpcam -j MASQUERADE
-A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
-A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
-A POSTROUTING -o eth0 -m comment --comment "!fw3" -j zone_wan_postrouting
-A openclash -m set --match-set localnetwork dst -j RETURN
-A openclash -p tcp -j REDIRECT --to-ports 7892
-A openclash_output -m set --match-set localnetwork dst -j RETURN
-A openclash_output -d 198.18.0.0/16 -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892
-A openclash_output -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892
-A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
-A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
-A zone_wan_postrouting -m comment --comment "!fw3: Custom wan postrouting rule chain" -j postrouting_wan_rule
-A zone_wan_postrouting -j MINIUPNPD-POSTROUTING
-A zone_wan_postrouting -m comment --comment "!fw3" -j MASQUERADE
-A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
-A zone_wan_prerouting -j MINIUPNPD
COMMIT
# Completed on Sun Sep  5 08:24:29 2021

#IPv4 Mangle chain

# Generated by iptables-save v1.8.7 on Sun Sep  5 08:24:29 2021
*mangle
:PREROUTING ACCEPT [98765:80885138]
:INPUT ACCEPT [67478:55023913]
:FORWARD ACCEPT [30639:25586546]
:OUTPUT ACCEPT [62886:55166630]
:POSTROUTING ACCEPT [93483:80699002]
:openclash - [0:0]
:openclash_dns_hijack - [0:0]
:openclash_output - [0:0]
-A PREROUTING -p udp -j openclash
-A PREROUTING -p tcp -m tcp --dport 53 -j openclash_dns_hijack
-A FORWARD -o eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -i eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
-A OUTPUT -j openclash_output
-A openclash -p udp -m udp --dport 500 -j RETURN
-A openclash -p udp -m udp --dport 68 -j RETURN
-A openclash -m set --match-set localnetwork dst -j RETURN
-A openclash -j MARK --set-xmark 0x162/0xffffffff
-A openclash_dns_hijack -d 8.8.8.8/32 -j MARK --set-xmark 0x162/0xffffffff
-A openclash_dns_hijack -d 8.8.4.4/32 -j MARK --set-xmark 0x162/0xffffffff
-A openclash_output -p udp -m udp --sport 500 -j RETURN
-A openclash_output -p udp -m udp --sport 68 -j RETURN
-A openclash_output -m set --match-set localnetwork dst -j RETURN
-A openclash_output -d 198.18.0.0/16 -p udp -m owner ! --uid-owner 65534 -j MARK --set-xmark 0x162/0xffffffff
COMMIT
# Completed on Sun Sep  5 08:24:29 2021

#IPv6 NAT chain

#IPv6 Mangle chain

# Generated by ip6tables-save v1.8.7 on Sun Sep  5 08:24:29 2021
*mangle
:PREROUTING ACCEPT [6611:2625418]
:INPUT ACCEPT [521:30809]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [73:8865]
:POSTROUTING ACCEPT [73:8865]
-A FORWARD -o eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -i eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
COMMIT
# Completed on Sun Sep  5 08:24:29 2021

#===================== IPSET状态 =====================#

Name: china_ip_route
Name: localnetwork

#===================== 路由表状态 =====================#

#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
10.242.0.0      0.0.0.0         255.255.0.0     U     0      0        0 ztzlgmpcam
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.22.0    10.242.100.130  255.255.255.0   UG    0      0        0 ztzlgmpcam
192.168.33.0    10.242.100.69   255.255.255.0   UG    0      0        0 ztzlgmpcam
192.168.44.0    10.242.100.99   255.255.255.0   UG    0      0        0 ztzlgmpcam
192.168.66.0    10.242.100.37   255.255.255.0   UG    0      0        0 ztzlgmpcam
192.168.77.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.88.0    10.242.100.216  255.255.255.0   UG    0      0        0 ztzlgmpcam
192.168.99.0    10.242.100.121  255.255.255.0   UG    0      0        0 ztzlgmpcam
198.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 utun
#ip route list
default via 192.168.1.1 dev eth0 proto static src 192.168.1.2 
10.242.0.0/16 dev ztzlgmpcam proto kernel scope link src 10.242.100.179 
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2 
192.168.22.0/24 via 10.242.100.130 dev ztzlgmpcam proto static 
192.168.33.0/24 via 10.242.100.69 dev ztzlgmpcam proto static 
192.168.44.0/24 via 10.242.100.99 dev ztzlgmpcam proto static 
192.168.66.0/24 via 10.242.100.37 dev ztzlgmpcam proto static 
192.168.77.0/24 dev br-lan proto kernel scope link src 192.168.77.1 
192.168.88.0/24 via 10.242.100.216 dev ztzlgmpcam proto static 
192.168.99.0/24 via 10.242.100.121 dev ztzlgmpcam proto static 
198.18.0.0/16 dev utun proto kernel scope link src 198.18.0.1 
#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

#===================== Tun设备状态 =====================#

ztzlgmpcam: tap
utun: tun

#===================== 端口占用状态 =====================#

tcp        0      0 198.18.0.1:7777         0.0.0.0:*               LISTEN      24477/clash
tcp        0      0 :::9090                 :::*                    LISTEN      24477/clash
tcp        0      0 :::7890                 :::*                    LISTEN      24477/clash
tcp        0      0 :::7891                 :::*                    LISTEN      24477/clash
tcp        0      0 :::7892                 :::*                    LISTEN      24477/clash
tcp        0      0 :::7893                 :::*                    LISTEN      24477/clash
tcp        0      0 :::7895                 :::*                    LISTEN      24477/clash
udp        0      0 198.18.0.1:7777         0.0.0.0:*                           24477/clash
udp        0      0 127.0.0.1:7874          0.0.0.0:*                           24477/clash
udp        0      0 :::45055                :::*                                24477/clash
udp        0      0 :::51410                :::*                                24477/clash
udp        0      0 :::51452                :::*                                24477/clash
udp        0      0 :::43451                :::*                                24477/clash
udp        0      0 :::39865                :::*                                24477/clash
udp        0      0 :::37986                :::*                                24477/clash
udp        0      0 :::33902                :::*                                24477/clash
udp        0      0 :::52411                :::*                                24477/clash
udp        0      0 :::36389                :::*                                24477/clash
udp        0      0 :::56908                :::*                                24477/clash
udp        0      0 :::7891                 :::*                                24477/clash
udp        0      0 :::7892                 :::*                                24477/clash
udp        0      0 :::7893                 :::*                                24477/clash
udp        0      0 :::7895                 :::*                                24477/clash

#===================== 测试本机DNS查询 =====================#

Server:     127.0.0.1
Address:    127.0.0.1#53

Name:      www.baidu.com
Address 1: 198.18.0.251
*** Can't find www.baidu.com: No answer

#===================== resolv.conf.d =====================#

# Interface wan
nameserver 119.29.29.29
nameserver 223.5.5.5
nameserver 114.114.114.114

#===================== 测试本机网络连接 =====================#

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: Sun, 05 Sep 2021 00:24:29 GMT
Etag: "575e1f7c-115"
Last-Modified: Mon, 13 Jun 2016 02:50:36 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

#===================== 测试本机网络下载 =====================#

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: "f0109a8fb81b158766acb7827660086fe8d8cd5f1458a78a290655644903a004"
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-GitHub-Request-Id: C8B0:0916:6979E5:7E41A5:6133A3AB
Accept-Ranges: bytes
Date: Sun, 05 Sep 2021 00:24:29 GMT
Via: 1.1 varnish
X-Served-By: cache-hkg17924-HKG
X-Cache: HIT
X-Cache-Hits: 1
X-Timer: S1630801469.371518,VS0,VE1
Vary: Authorization,Accept-Encoding
Access-Control-Allow-Origin: *
X-Fastly-Request-ID: 209415c88e8f1f8d2f1eeb232853f7a3b4ed779b
Expires: Sun, 05 Sep 2021 00:29:29 GMT
Source-Age: 54

#===================== 最近运行日志 =====================#

2021-09-05 08:14:59 OpenClash Stoping...
2021-09-05 08:14:59 Step 1: Backup The Current Groups State...
2021-09-05 08:14:59 Step 2: Delete OpenClash Firewall Rules...
2021-09-05 08:15:00 Step 3: Close The OpenClash Daemons...
2021-09-05 08:15:00 Step 4: Close The Clash Core Process...
2021-09-05 08:15:00 Step 5: Restart Dnsmasq...
2021-09-05 08:15:03 Step 6: Delete OpenClash Residue File...
2021-09-05 08:15:03 OpenClash Start Running...
2021-09-05 08:15:03 Step 1: Get The Configuration...
2021-09-05 08:15:03 Step 2: Check The Components...
2021-09-05 08:15:03 Step 3: Modify The Config File...
2021-09-05 08:15:03 Error: Nameserver Option Must Be Setted, Stop Customing DNS Servers
2021-09-05 08:15:06 Setting Fake IP Filter...
2021-09-05 08:15:07 Step 4: Start Running The Clash Core...
2021-09-05 08:15:07 Detected The Exclusive Function of The TUN Core, Use TUN Core to Start...
2021-09-05 08:15:10 Step 5: Check The Core Status...
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider HK"
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider TW"
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider ROUTE"
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider NETFLIX"
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider FAST"
time="2021-09-05T00:15:10Z" level=info msg="Start initial compatible provider US"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider Bahamut(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider KKTV(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider Disney Plus"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider LINE-TV"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider Now-E"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider PBS(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider Netflix(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider 反劫持规则"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider Hulu(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider HBO(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider ViuTV(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider 隐私规则合集"
time="2021-09-05T00:15:10Z" level=info msg="Start initial rule provider 广告规则(By lhie1)"
time="2021-09-05T00:15:10Z" level=info msg="DNS server listening at: 127.0.0.1:7874"
2021-09-05 08:15:13 Step 6: Wait For The File Downloading...
2021-09-05 08:15:13 Step 7: Set Control Panel...
2021-09-05 08:15:13 Step 8: Set Firewall Rules...
2021-09-05 08:15:13 Step 9: Restart Dnsmasq...
2021-09-05 08:15:13 Setting Secondary DNS Server List...
2021-09-05 08:15:16 Step 10: Add Cron Rules, Start Daemons...
2021-09-05 08:15:16 OpenClash Start Successful!

#===================== 活动连接信息 =====================#

1. SourceIP:【198.18.0.1】 - Host:【Empty】 - DestinationIP:【103.195.103.66】 - Network:【udp】 - RulePayload:【】 - Lastchain:【CN-HK1】
2. SourceIP:【198.18.0.1】 - Host:【Empty】 - DestinationIP:【103.195.103.66】 - Network:【udp】 - RulePayload:【】 - Lastchain:【CN-HK1】
3. SourceIP:【198.18.0.1】 - Host:【Empty】 - DestinationIP:【103.195.103.66】 - Network:【udp】 - RulePayload:【】 - Lastchain:【CN-HK1】
4. SourceIP:【192.168.77.127】 - Host:【Empty】 - DestinationIP:【153.3.149.150】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
5. SourceIP:【192.168.77.107】 - Host:【Empty】 - DestinationIP:【120.52.181.238】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
6. SourceIP:【192.168.77.103】 - Host:【gspe1-ssl.ls.apple.com】 - DestinationIP:【23.45.61.4】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
7. SourceIP:【192.168.77.225】 - Host:【Empty】 - DestinationIP:【202.118.1.130】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
8. SourceIP:【192.168.77.160】 - Host:【gateway.icloud.com.cn】 - DestinationIP:【112.65.66.244】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
9. SourceIP:【192.168.77.179】 - Host:【111.202.1.238】 - DestinationIP:【111.202.1.238】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
10. SourceIP:【192.168.77.132】 - Host:【Empty】 - DestinationIP:【101.71.30.207】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
11. SourceIP:【192.168.77.152】 - Host:【111.202.1.238】 - DestinationIP:【111.202.1.238】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
12. SourceIP:【192.168.77.127】 - Host:【Empty】 - DestinationIP:【111.13.141.211】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
13. SourceIP:【192.168.77.216】 - Host:【Empty】 - DestinationIP:【172.217.160.106】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
14. SourceIP:【192.168.77.216】 - Host:【s-usc1c-nss-216.firebaseio.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【ViuTV(By lhie1)】 - Lastchain:【CN-HK1】
15. SourceIP:【192.168.77.204】 - Host:【Empty】 - DestinationIP:【111.202.1.248】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
16. SourceIP:【192.168.77.204】 - Host:【Empty】 - DestinationIP:【111.202.86.130】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
17. SourceIP:【192.168.77.190】 - Host:【cloud-hdsh-big-1256683041.cos.ap-shanghai.myqcloud.com】 - DestinationIP:【112.80.252.162】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
18. SourceIP:【192.168.77.141】 - Host:【Empty】 - DestinationIP:【42.157.165.197】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
19. SourceIP:【192.168.77.204】 - Host:【Empty】 - DestinationIP:【112.17.28.37】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
20. SourceIP:【192.168.77.216】 - Host:【alive.github.com】 - DestinationIP:【140.82.113.26】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
21. SourceIP:【192.168.77.216】 - Host:【raw.githubusercontent.com】 - DestinationIP:【185.199.109.133】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
22. SourceIP:【192.168.77.216】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【185.199.110.133】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
23. SourceIP:【192.168.77.248】 - Host:【Empty】 - DestinationIP:【111.202.1.238】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
24. SourceIP:【192.168.77.103】 - Host:【itunes.apple.com】 - DestinationIP:【113.194.59.197】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
25. SourceIP:【192.168.77.204】 - Host:【broker.miwifi.com】 - DestinationIP:【140.207.195.73】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
26. SourceIP:【192.168.77.203】 - Host:【111.202.1.238】 - DestinationIP:【111.202.1.238】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
27. SourceIP:【192.168.77.216】 - Host:【sync-1-us-west1-g.sync.services.mozilla.com】 - DestinationIP:【35.186.227.140】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
28. SourceIP:【192.168.77.103】 - Host:【itunes.apple.com】 - DestinationIP:【61.162.101.106】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
29. SourceIP:【192.168.77.216】 - Host:【push.services.mozilla.com】 - DestinationIP:【35.82.218.35】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
30. SourceIP:【192.168.77.160】 - Host:【gateway.icloud.com.cn】 - DestinationIP:【112.65.66.248】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
31. SourceIP:【192.168.77.216】 - Host:【github.com】 - DestinationIP:【20.205.243.166】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
32. SourceIP:【192.168.77.190】 - Host:【Empty】 - DestinationIP:【114.67.231.61】 - Network:【udp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
33. SourceIP:【192.168.77.216】 - Host:【github.githubassets.com】 - DestinationIP:【185.199.110.154】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
34. SourceIP:【192.168.77.216】 - Host:【www.googleapis.com】 - DestinationIP:【216.58.200.234】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【CN-HK1】
ghost commented 3 years ago

我也遇到这个问题了

ghost commented 3 years ago

我知道问题出在哪了: 我在配置文件中设置了DNS Nameserver,但在Openclash的“DNS设置”中没有启用“自定义上游DNS”就会出现这个错误,如果我在OpenClash的DNS设置中启用并添加一个自定义上游DNS,就不会报这个错了。

但这个报错其实是不合理的,因为在配置文件中自定义上游DNS和在OpenClash的设置中定义上游DNS因该是等效的。, 实际上确实也不影响工作,因为不设置就不接管这部分配置,直接用手写在配置文件中的上游DNS工作了。

建议修改下这个Log Error的判断逻辑,或者干脆就不报这个Error。

ghost commented 3 years ago

问题因该是从这个commit开始引入的: https://github.com/vernesong/OpenClash/blob/8dcb8383a078818ddf9a0c4d3a697c5b436db44c/luci-app-openclash/root/etc/init.d/openclash

Maozai-Teng commented 2 months ago

我知道问题出在哪了: 我在配置文件中设置了DNS Nameserver,但在Openclash的“DNS设置”中没有启用“自定义上游DNS”就会出现这个错误,如果我在OpenClash的DNS设置中启用并添加一个自定义上游DNS,就不会报这个错了。

但这个报错其实是不合理的,因为在配置文件中自定义上游DNS和在OpenClash的设置中定义上游DNS因该是等效的。, 实际上确实也不影响工作,因为不设置就不接管这部分配置,直接用手写在配置文件中的上游DNS工作了。

建议修改下这个Log Error的判断逻辑,或者干脆就不报这个Error。

我也遇到了这个问题,我是直接用rawObj.dns = dnsConfig;覆盖就出错,换成合并rawObj.dns = Object.assign({}, rawObj.dns, dnsConfig);就没问题了~ヽ(`Д´)ノ