vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.64k stars 3.19k forks source link

[Bug] proxy-provider在clash启动后不会自动更新 #4152

Open qiuham opened 2 weeks ago

qiuham commented 2 weeks ago

Verify Steps

OpenClash Version

v0.46.048-beta

Bug on Environment

Lean

OpenWrt Version

25.193.79881-8de7494

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

proxy-provider在clash启动后不会自动更新,必须关闭重启时才会更新订阅,在更新meta内核之前正常,不确定是否是meta内核引起的,v0.46.048-beta无法回退旧版内核无法排查

To Reproduce

启动clash并配置proxy-provider可以复现

OpenClash Log

OpenClash 调试日志

生成时间: 2024-11-02 10:31:11
插件版本: v0.46.048-beta
隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息

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

主机型号: BROUNION R86S
固件版本: OpenWrt 23.05-SNAPSHOT 07.13.2024
LuCI版本: 
内核版本: 5.15.162
处理器架构: x86_64

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

DNS劫持: Dnsmasq 转发
#DNS劫持为Dnsmasq时,此项结果应仅有配置文件的DNS监听地址
Dnsmasq转发设置: 127.0.*.*#7874

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

dnsmasq-full: 已安装
coreutils: 已安装
coreutils-nohup: 已安装
bash: 已安装
curl: 已安装
ca-certificates: 未安装
ipset: 已安装
ip-full: 已安装
libcap: 已安装
libcap-bin: 已安装
ruby: 已安装
ruby-yaml: 已安装
ruby-psych: 已安装
ruby-pstore: 已安装
kmod-tun(TUN模式): 已安装
luci-compat(Luci >= 19.07): 已安装
kmod-inet-diag(PROCESS-NAME): 已安装
unzip: 已安装
kmod-nft-tproxy: 未安装

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

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

#下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限

Meta内核版本: alpha-g3e966e8
Meta内核文件: 存在
Meta内核运行权限: 正常

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

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

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

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

#===================== 配置文件 =====================#

mixed-port: 7893
allow-lan: true
mode: rule
log-level: error
proxy-groups:
- name: "\U0001F530 PROXY"
  type: select
  use:
  - jms
  - jh
  proxies:
  - "\U0001F3AF DIRECT"
- name: "\U0001F1FA\U0001F1F8 Origin"
  type: select
  use:
  - jh
  proxies:
  - "\U0001F3AF DIRECT"
- name: "⚡️ URL Test"
  type: url-test
  use:
  - jms
  - jh
- name: "▶️ YouTube"
  type: select
  proxies:
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F37F Netflix"
  type: select
  proxies:
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F430 DisneyPlus"
  type: select
  proxies:
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F4FA AppleTV"
  type: select
  proxies:
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F34E Apple"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: Ⓜ️ Microsoft
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F4B0 PayPal"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F60D Telegram"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F6AB AdBlock"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - REJECT
- name: "₿ Exchange"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F41F Other"
  type: select
  proxies:
  - "\U0001F3AF DIRECT"
  - "\U0001F530 PROXY"
  - "\U0001F1FA\U0001F1F8 Origin"
  - "⚡️ URL Test"
- name: "\U0001F3AF DIRECT"
  type: select
  proxies:
  - DIRECT
rule-providers:
  AdBlock:
    type: http
    path: "./rule_provider/AdBlock.txt"
    behavior: domain
    format: text
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Advertising/Advertising_Domain.txt
    interval: 86400
  YouTube:
    type: http
    path: "./rule_provider/YouTube.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml
    interval: 86400
  Netflix:
    type: http
    path: "./rule_provider/Netflix.yaml"
    behavior: ipcidr
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix_IP.yaml
    interval: 86400
  DisneyPlus:
    type: http
    path: "./rule_provider/DisneyPlus.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Disney/Disney.yaml
    interval: 86400
  PayPal:
    type: http
    path: "./rule_provider/PayPal.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/PayPal/PayPal.yaml
    interval: 86400
  AppleTV:
    type: http
    path: "./rule_provider/AppleTV.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/AppleTV/AppleTV.yaml
    interval: 86400
  Apple:
    type: http
    path: "./rule_provider/Apple.yaml"
    behavior: domain
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple.yaml
    interval: 86400
  Microsoft:
    type: http
    path: "./rule_provider/Microsoft.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml
    interval: 86400
  Telegram:
    type: http
    path: "./rule_provider/Telegram.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/Telegram/Telegram.yaml
  Binance:
    type: http
    path: "./rule_provider/Binance.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Binance/Binance.yaml
  OKX:
    type: http
    path: "./rule_provider/OKX.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OKX/OKX.yaml
  DIRECT:
    type: http
    path: "./rule_provider/DIRECT.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/ChinaMax/ChinaMax.yaml
  WeChat:
    type: http
    path: "./rule_provider/WeChat.yaml"
    behavior: classical
    format: yaml
    url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/WeChat/WeChat.yaml
rules:
- DST-PORT,7895,REJECT
- DST-PORT,7892,REJECT
- IP-CIDR,198.18.*.*/16,REJECT,no-resolve
- "RULE-SET,AdBlock,\U0001F6AB AdBlock"
- RULE-SET,YouTube,▶️ YouTube
- "RULE-SET,Netflix,\U0001F37F Netflix,no-resolve"
- "RULE-SET,DisneyPlus,\U0001F430 DisneyPlus"
- "RULE-SET,PayPal,\U0001F4B0 PayPal"
- "RULE-SET,AppleTV,\U0001F4FA AppleTV"
- "RULE-SET,Apple,\U0001F34E Apple"
- RULE-SET,Microsoft,Ⓜ️ Microsoft
- "RULE-SET,Telegram,\U0001F60D Telegram"
- RULE-SET,Binance,₿ Exchange
- RULE-SET,OKX,₿ Exchange
- "RULE-SET ,WeChat,\U0001F3AF DIRECT"
- "RULE-SET,DIRECT,\U0001F3AF DIRECT"
- "GEOIP,CN,\U0001F3AF DIRECT"
- "MATCH,\U0001F41F Other"
dns:
  enable: true
  ipv6: false
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.*.*/16
  listen: 0.0.*.*:7874
  fake-ip-filter:
  - geosite:cn
  nameserver:
  - 114.114.*.*
  - 119.29.*.*
  - 8.8.*.*
  - 1.1.*.*
  fallback:
  - https://dns.cloudflare.com/dns-query
  - https://dns.google/dns-query
redir-port: 7892
tproxy-port: 7895
port: 7890
socks-port: 7891
external-controller: 0.0.*.*:9090
bind-address: "*"
external-ui: "/usr/share/openclash/ui"
ipv6: false
tun:
  enable: true
  stack: system
  device: utun
  dns-hijack:
  - tcp://any:53
  gso: true
  gso-max-size: 65536
  auto-route: false
  auto-detect-interface: false
  auto-redirect: false
  strict-route: false
profile:
  store-selected: true
authentication:
- Clash:8mBqLfyD
- Clash:kPxfBaJD

#===================== 自定义覆写设置 =====================#

#!/bin/sh
. /usr/share/openclash/ruby.sh
. /usr/share/openclash/log.sh
. /lib/functions.sh

# This script is called by /etc/init.d/openclash
# Add your custom overwrite scripts here, they will be take effict after the OpenClash own srcipts

LOG_OUT "Tip: Start Running Custom Overwrite Scripts..."
LOGTIME=$(echo $(date "+%Y-%m-%d %H:%M:%S"))
LOG_FILE="/tmp/openclash.log"
CONFIG_FILE="$1" #config path

#Simple Demo:
    #General Demo
    #1--config path
    #2--key name
    #3--value
    #ruby_edit "$CONFIG_FILE" "['redir-port']" "7892"
    #ruby_edit "$CONFIG_FILE" "['secret']" "123456"
    #ruby_edit "$CONFIG_FILE" "['dns']['enable']" "true"

    #Hash Demo
    #1--config path
    #2--key name
    #3--hash type value
    #ruby_edit "$CONFIG_FILE" "['experimental']" "{'sniff-tls-sni'=>true}"
    #ruby_edit "$CONFIG_FILE" "['sniffer']" "{'sniffing'=>['tls','http']}"

    #Array Demo:
    #1--config path
    #2--key name
    #3--position(start from 0, end with -1)
    #4--value
    #ruby_arr_insert "$CONFIG_FILE" "['dns']['nameserver']" "0" "114.114.*.*"

    #Array Add From Yaml File Demo:
    #1--config path
    #2--key name
    #3--position(start from 0, end with -1)
    #4--value file path
    #5--value key name in #4 file
    #ruby_arr_add_file "$CONFIG_FILE" "['dns']['fallback-filter']['ipcidr']" "0" "/etc/openclash/custom/openclash_custom_fallback_filter.yaml" "['fallback-filter']['ipcidr']"

#Ruby Script Demo:
    #ruby -ryaml -rYAML -I "/usr/share/openclash" -E UTF-8 -e "
    #   begin
    #      Value = YAML.load_file('$CONFIG_FILE');
    #   rescue Exception => e
    #      puts '${LOGTIME} Error: Load File Failed,【' + e.message + '】';
    #   end;

        #General
    #   begin
    #   Thread.new{
    #      Value['redir-port']=7892;
    #      Value['tproxy-port']=7895;
    #      Value['port']=7890;
    #      Value['socks-port']=7891;
    #      Value['mixed-port']=7893;
    #   }.join;

    #   rescue Exception => e
    #      puts '${LOGTIME} Error: Set General Failed,【' + e.message + '】';
    #   ensure
    #      File.open('$CONFIG_FILE','w') {|f| YAML.dump(Value, f)};
    #   end" 2>/dev/null >> $LOG_FILE

exit 0
#===================== 自定义防火墙设置 =====================#

#!/bin/sh
. /usr/share/openclash/log.sh
. /lib/functions.sh

# This script is called by /etc/init.d/openclash
# Add your custom firewall rules here, they will be added after the end of the OpenClash iptables rules

LOG_OUT "Tip: Start Add Custom Firewall Rules..."

exit 0
#===================== IPTABLES 防火墙设置 =====================#

#IPv4 NAT chain

# Generated by iptables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -p udp -m comment --comment DNSMASQ -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -p tcp -m comment --comment DNSMASQ -m tcp --dport 53 -j REDIRECT --to-ports 53
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

#IPv4 Mangle chain

# Generated by iptables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:mwan3_connected - [0:0]
:mwan3_hook - [0:0]
:mwan3_iface_in_wan0 - [0:0]
:mwan3_iface_in_wan1 - [0:0]
:mwan3_ifaces_in - [0:0]
:mwan3_policy_balanced - [0:0]
:mwan3_rule_https - [0:0]
:mwan3_rules - [0:0]
-A PREROUTING -j mwan3_hook
-A OUTPUT -j mwan3_hook
-A mwan3_connected -m set --match-set mwan3_connected dst -j MARK --set-xmark 0x3f00/0x3f00
-A mwan3_hook -j CONNMARK --restore-mark --nfmask 0x3f00 --ctmask 0x3f00
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_ifaces_in
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_connected
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_rules
-A mwan3_hook -j CONNMARK --save-mark --nfmask 0x3f00 --ctmask 0x3f00
-A mwan3_hook -m mark ! --mark 0x3f00/0x3f00 -j mwan3_connected
-A mwan3_iface_in_wan0 -i pppoe-wan0 -m set --match-set mwan3_connected src -m mark --mark 0x0/0x3f00 -m comment --comment default -j MARK --set-xmark 0x3f00/0x3f00
-A mwan3_iface_in_wan0 -i pppoe-wan0 -m mark --mark 0x0/0x3f00 -m comment --comment wan0 -j MARK --set-xmark 0x100/0x3f00
-A mwan3_iface_in_wan1 -i pppoe-wan1 -m set --match-set mwan3_connected src -m mark --mark 0x0/0x3f00 -m comment --comment default -j MARK --set-xmark 0x3f00/0x3f00
-A mwan3_iface_in_wan1 -i pppoe-wan1 -m mark --mark 0x0/0x3f00 -m comment --comment wan1 -j MARK --set-xmark 0x200/0x3f00
-A mwan3_ifaces_in -m mark --mark 0x0/0x3f00 -j mwan3_iface_in_wan1
-A mwan3_ifaces_in -m mark --mark 0x0/0x3f00 -j mwan3_iface_in_wan0
-A mwan3_policy_balanced -m mark --mark 0x0/0x3f00 -m statistic --mode random --probability 0.45399999991 -m comment --comment "wan1 5 11" -j MARK --set-xmark 0x200/0x3f00
-A mwan3_policy_balanced -m mark --mark 0x0/0x3f00 -m comment --comment "wan0 6 6" -j MARK --set-xmark 0x100/0x3f00
-A mwan3_rule_https -m mark --mark 0x0/0x3f00 -j MARK --set-xmark 0x200/0x3f00
-A mwan3_rule_https -m mark --mark 0x200/0x3f00 -m set ! --match-set mwan3_sticky_https src,src -j MARK --set-xmark 0x0/0x3f00
-A mwan3_rule_https -m mark --mark 0x0/0x3f00 -j MARK --set-xmark 0x100/0x3f00
-A mwan3_rule_https -m mark --mark 0x100/0x3f00 -m set ! --match-set mwan3_sticky_https src,src -j MARK --set-xmark 0x0/0x3f00
-A mwan3_rule_https -m mark --mark 0x0/0x3f00 -j mwan3_policy_balanced
-A mwan3_rule_https -m mark ! --mark 0xfc00/0xfc00 -j SET --del-set mwan3_sticky_https src,src
-A mwan3_rule_https -m mark ! --mark 0xfc00/0xfc00 -j SET --add-set mwan3_sticky_https src,src
-A mwan3_rules -p tcp -m multiport --dports 443 -m mark --mark 0x0/0x3f00 -j mwan3_rule_https
-A mwan3_rules -m mark --mark 0x0/0x3f00 -j mwan3_policy_balanced
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

#IPv4 Filter chain

# Generated by iptables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

#IPv6 NAT chain

# Generated by ip6tables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -p udp -m comment --comment DNSMASQ -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -p tcp -m comment --comment DNSMASQ -m tcp --dport 53 -j REDIRECT --to-ports 53
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

#IPv6 Mangle chain

# Generated by ip6tables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:mwan3_connected - [0:0]
:mwan3_hook - [0:0]
:mwan3_ifaces_in - [0:0]
:mwan3_policy_balanced - [0:0]
:mwan3_rule_https - [0:0]
:mwan3_rules - [0:0]
-A PREROUTING -j mwan3_hook
-A OUTPUT -j mwan3_hook
-A mwan3_connected -m set --match-set mwan3_connected dst -j MARK --set-xmark 0x3f00/0x3f00
-A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 133 -j RETURN
-A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 134 -j RETURN
-A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 135 -j RETURN
-A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 136 -j RETURN
-A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 137 -j RETURN
-A mwan3_hook -p ipv6-icmp -m set --match-set mwan3_source_v6 src -m icmp6 --icmpv6-type 128 -j RETURN
-A mwan3_hook -j CONNMARK --restore-mark --nfmask 0x3f00 --ctmask 0x3f00
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_ifaces_in
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_connected
-A mwan3_hook -m mark --mark 0x0/0x3f00 -j mwan3_rules
-A mwan3_hook -j CONNMARK --save-mark --nfmask 0x3f00 --ctmask 0x3f00
-A mwan3_hook -m mark ! --mark 0x3f00/0x3f00 -j mwan3_connected
-A mwan3_policy_balanced -m mark --mark 0x0/0x3f00 -m comment --comment unreachable -j MARK --set-xmark 0x3e00/0x3f00
-A mwan3_rule_https -m mark --mark 0x0/0x3f00 -j mwan3_policy_balanced
-A mwan3_rule_https -m mark ! --mark 0xfc00/0xfc00 -j SET --del-set mwan3_sticky_https src,src
-A mwan3_rule_https -m mark ! --mark 0xfc00/0xfc00 -j SET --add-set mwan3_sticky_https src,src
-A mwan3_rules -p tcp -m multiport --dports 443 -m mark --mark 0x0/0x3f00 -j mwan3_rule_https
-A mwan3_rules -m mark --mark 0x0/0x3f00 -j mwan3_policy_balanced
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

#IPv6 Filter chain

# Generated by ip6tables-save v1.8.8 (nf_tables) on Sat Nov  2 10:31:12 2024
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Sat Nov  2 10:31:12 2024

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

table inet fw4 {
    chain input {
        type filter hook input priority filter; policy drop;
        meta l4proto { tcp, udp } iifname "utun" counter packets 0 bytes 0 accept comment "OpenClash TUN Input"
        iifname "lo" accept comment "!fw4: Accept traffic from loopback"
        ct state established,related accept comment "!fw4: Allow inbound established and related flows"
        tcp flags syn / fin,syn,rst,ack jump syn_flood comment "!fw4: Rate limit TCP syn packets"
        iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic"
        iifname { "pppoe-wan0", "pppoe-wan1" } jump input_wan comment "!fw4: Handle wan IPv4/IPv6 input traffic"
        jump handle_reject
    }
}
table inet fw4 {
    chain forward {
        type filter hook forward priority filter; policy accept;
        oifname "utun" udp dport 443 ip daddr != @china_ip_route counter packets 0 bytes 0 reject with icmp port-unreachable comment "OpenClash QUIC REJECT"
        meta l4proto { tcp, udp } iifname "utun" counter packets 0 bytes 0 accept comment "OpenClash TUN Forward"
        meta l4proto { tcp, udp } oifname "utun" counter packets 0 bytes 0 accept comment "OpenClash TUN Forward"
        ct state established,related accept comment "!fw4: Allow forwarded established and related flows"
        iifname "br-lan" jump forward_lan comment "!fw4: Handle lan IPv4/IPv6 forward traffic"
        iifname { "pppoe-wan0", "pppoe-wan1" } jump forward_wan comment "!fw4: Handle wan IPv4/IPv6 forward traffic"
        jump upnp_forward comment "Hook into miniupnpd forwarding chain"
    }
}
table inet fw4 {
    chain dstnat {
        type nat hook prerouting priority dstnat; policy accept;
        udp dport 53 counter packets 258 bytes 17081 redirect to :53 comment "OpenClash DNS Hijack"
        tcp dport 53 counter packets 0 bytes 0 accept comment "OpenClash DNS Hijack"
        iifname "br-lan" jump dstnat_lan comment "!fw4: Handle lan IPv4/IPv6 dstnat traffic"
        iifname { "pppoe-wan0", "pppoe-wan1" } jump dstnat_wan comment "!fw4: Handle wan IPv4/IPv6 dstnat traffic"
        jump upnp_prerouting comment "Hook into miniupnpd prerouting chain"
        ip protocol tcp counter packets 850 bytes 47057 jump openclash
    }
}
table inet fw4 {
    chain srcnat {
        type nat hook postrouting priority srcnat; policy accept;
        meta nfproto ipv4 oifname "utun" counter packets 0 bytes 0 return comment "OpenClash TUN Postrouting"
        oifname "br-lan" jump srcnat_lan comment "!fw4: Handle lan IPv4/IPv6 srcnat traffic"
        oifname { "pppoe-wan0", "pppoe-wan1" } jump srcnat_wan comment "!fw4: Handle wan IPv4/IPv6 srcnat traffic"
        jump upnp_postrouting comment "Hook into miniupnpd postrouting chain"
    }
}
table inet fw4 {
    chain nat_output {
        type nat hook output priority filter - 1; policy accept;
        meta skuid != 65534 meta nfproto ipv4 tcp dport 53 counter packets 0 bytes 0 accept comment "OpenClash DNS Hijack"
        ip protocol tcp counter packets 523 bytes 31380 jump openclash_output
    }
}
table inet fw4 {
    chain mangle_prerouting {
        type filter hook prerouting priority mangle; policy accept;
        meta nfproto ipv4 tcp dport 53 counter packets 0 bytes 0 jump openclash_dns_hijack
        ip protocol udp counter packets 2734 bytes 455414 jump openclash_mangle
    }
}
table inet fw4 {
    chain mangle_output {
        type route hook output priority mangle; policy accept;
        meta nfproto ipv4 meta l4proto { tcp, udp } counter packets 13383 bytes 10571171 jump openclash_mangle_output
    }
}
table inet fw4 {
    chain openclash {
        ip daddr @localnetwork counter packets 486 bytes 24642 return
        ip daddr @china_ip_route ip daddr != @china_ip_route_pass counter packets 150 bytes 9508 return
        ip protocol tcp counter packets 214 bytes 12907 redirect to :7892
    }
}
table inet fw4 {
    chain openclash_mangle {
        meta nfproto ipv4 udp sport 500 counter packets 0 bytes 0 return
        meta nfproto ipv4 udp sport 68 counter packets 1 bytes 316 return
        ip saddr 192.168.*.* udp sport 30033 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 10011 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 9987 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 3389 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8000 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8443 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8443 counter packets 0 bytes 0 return
        meta l4proto { tcp, udp } iifname "utun" counter packets 0 bytes 0 return
        ip daddr @localnetwork counter packets 2333 bytes 414751 return
        ip daddr @china_ip_route ip daddr != @china_ip_route_pass counter packets 234 bytes 24080 return
        ip protocol udp counter packets 172 bytes 16789 jump openclash_upnp
        meta l4proto { tcp, udp } th dport 0-65535 meta mark set 0x00000162 counter packets 172 bytes 16789
    }
}
table inet fw4 {
    chain openclash_mangle_output {
        meta nfproto ipv4 udp sport 500 counter packets 0 bytes 0 return
        meta nfproto ipv4 udp sport 68 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 30033 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 10011 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 9987 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 3389 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8000 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8443 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* udp sport 8443 counter packets 0 bytes 0 return
        tcp dport 53 meta skuid != 65534 meta mark set 0x00000162 counter packets 0 bytes 0
        ip daddr @localnetwork counter packets 11432 bytes 10405214 return
        meta skuid != 65534 udp dport 0-65535 ip daddr 198.18.*.*/16 meta mark set 0x00000162 counter packets 0 bytes 0
    }
}
table inet fw4 {
    chain openclash_output {
        ip saddr 192.168.*.* tcp sport 30033 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* tcp sport 10011 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* tcp sport 3389 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* tcp sport 8000 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* tcp sport 8443 counter packets 0 bytes 0 return
        ip saddr 192.168.*.* tcp sport 8443 counter packets 0 bytes 0 return
        ip daddr @localnetwork counter packets 268 bytes 16080 return
        ip protocol tcp ip daddr 198.18.*.*/16 meta skuid != 65534 counter packets 0 bytes 0 redirect to :7892
        meta skuid != 65534 ip daddr @china_ip_route ip daddr != @china_ip_route_pass counter packets 1 bytes 60 return
        ip protocol tcp meta skuid != 65534 counter packets 1 bytes 60 redirect to :7892
    }
}
table inet fw4 {
    chain openclash_dns_hijack {
    }
}

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

Name: mwan3_connected_v4
Type: hash:net
Revision: 7
Header: family inet hashsize 1024 maxelem 65536 bucketsize 12 initval 0xfdbcf8b1
Size in memory: 1136
References: 11
Number of entries: 14

Name: mwan3_connected_v6
Type: hash:net
Revision: 7
Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0x74e0a1b0
Size in memory: 1608
References: 11
Number of entries: 5

Name: mwan3_source_v6
Type: hash:net
Revision: 7
Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0x48df4a07
Size in memory: 1248
References: 1
Number of entries: 0

Name: mwan3_dynamic_v4
Type: hash:net
Revision: 7
Header: family inet hashsize 1024 maxelem 65536 bucketsize 12 initval 0x3f48fd38
Size in memory: 464
References: 11
Number of entries: 0

Name: mwan3_dynamic_v6
Type: hash:net
Revision: 7
Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0xdde02261
Size in memory: 1248
References: 11
Number of entries: 0

Name: mwan3_custom_v4
Type: hash:net
Revision: 7
Header: family inet hashsize 1024 maxelem 65536 bucketsize 12 initval 0xd7c3d104
Size in memory: 464
References: 11
Number of entries: 0

Name: mwan3_custom_v6
Type: hash:net
Revision: 7
Header: family inet6 hashsize 1024 maxelem 65536 bucketsize 12 initval 0xcdaf2bf7
Size in memory: 1248
References: 11
Number of entries: 0

Name: mwan3_sticky_v4_https
Type: hash:ip,mark
Revision: 3
Header: family inet markmask 0x00003f00 hashsize 1024 maxelem 65536 timeout 600 bucketsize 12 initval 0xdf13f007
Size in memory: 3216
References: 11
Number of entries: 8

Name: mwan3_sticky_v6_https
Type: hash:ip,mark
Revision: 3
Header: family inet6 markmask 0x00003f00 hashsize 1024 maxelem 65536 timeout 600 bucketsize 12 initval 0x88ce506b
Size in memory: 224
References: 11
Number of entries: 0

Name: mwan3_connected
Type: list:set
Revision: 3
Header: size 8
Size in memory: 376
References: 4
Number of entries: 6

Name: mwan3_sticky_https
Type: list:set
Revision: 3
Header: size 8
Size in memory: 184
References: 6
Number of entries: 2

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

#IPv4

#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.*.*         120.41.*.*     0.0.*.*         UG    0      0        0 pppoe-wan0
36.249.*.*    0.0.*.*         255.255.*.* UH    0      0        0 pppoe-wan1
120.41.*.*     0.0.*.*         255.255.*.* UH    0      0        0 pppoe-wan0
192.168.*.*     0.0.*.*         255.255.*.*   U     0      0        0 br-lan
198.18.*.*      0.0.*.*         255.255.*.* U     0      0        0 utun

#ip route list
default via 120.41.*.* dev pppoe-wan0 proto static 
36.249.*.* dev pppoe-wan1 proto kernel scope link src 36.249.*.* 
120.41.*.* dev pppoe-wan0 proto kernel scope link src 120.41.*.* 
192.168.*.*/24 dev br-lan proto kernel scope link src 192.168.*.* 
198.18.*.*/30 dev utun proto kernel scope link src 198.18.*.* 

#ip rule show
0:  from all lookup local
1001:   from all iif pppoe-wan0 lookup 1
1002:   from all iif pppoe-wan1 lookup 2
2001:   from all fwmark 0x100/0x3f00 lookup 1
2002:   from all fwmark 0x200/0x3f00 lookup 2
2061:   from all fwmark 0x3d00/0x3f00 blackhole
2062:   from all fwmark 0x3e00/0x3f00 unreachable
8000:   from all fwmark 0x162 ipproto icmp lookup main
8001:   from all fwmark 0x162 lookup 354
32766:  from all lookup main
32767:  from all lookup default

#IPv6

#route -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
fe80::*:*:*:15b6/128               ::                                      U     256    2        0 pppoe-wan1
fe80::*:*:*:54dd/128               ::                                      U     256    1        0 pppoe-wan0
fe80::*:*:*:6c03/128               ::                                      U     256    2        0 pppoe-wan1
fe80::*:*:*:501/128                ::                                      U     256    1        0 pppoe-wan0
fe80::/64                                   ::                                      U     256    1        0 br-lan  
fe80::/64                                   ::                                      U     256    1        0 utun    
::/0                                        ::                                      !n    -1     1        0 lo      
::1/128                                     ::                                      Un    0      6        0 lo      
fe80::/128                                  ::                                      Un    0      3        0 br-lan  
fe80::/128                                  ::                                      Un    0      3        0 utun    
fe80::*:*:*:ac83/128                ::                                      Un    0      6        0 br-lan  
fe80::*:*:*:15b6/128               ::                                      Un    0      3        0 pppoe-wan1
fe80::*:*:*:af84/128                ::                                      Un    0      2        0 utun    
fe80::*:*:*:501/128                ::                                      Un    0      2        0 pppoe-wan0
ff00::/8                                    ::                                      U     256    3        0 pppoe-wan1
ff00::/8                                    ::                                      U     256    5        0 br-lan  
ff00::/8                                    ::                                      U     256    3        0 pppoe-wan0
ff00::/8                                    ::                                      U     256    4        0 utun    
::/0                                        ::                                      !n    -1     1        0 lo      

#ip -6 route list
fe80::*:*:*:15b6 dev pppoe-wan1 proto kernel metric 256 pref medium
fe80::*:*:*:54dd dev pppoe-wan0 proto kernel metric 256 pref medium
fe80::*:*:*:6c03 dev pppoe-wan1 proto kernel metric 256 pref medium
fe80::*:*:*:501 dev pppoe-wan0 proto kernel metric 256 pref medium
fe80::/64 dev br-lan proto kernel metric 256 pref medium
fe80::/64 dev utun proto kernel metric 256 pref medium

#ip -6 rule show
0:  from all lookup local
2061:   from all fwmark 0x3d00/0x3f00 blackhole
2062:   from all fwmark 0x3e00/0x3f00 unreachable
32766:  from all lookup main

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

utun: tun vnet_hdr

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

tcp        0      0 198.18.*.*:43543        0.0.*.*:*               LISTEN      18365/clash
tcp        0      0 :::7892                 :::*                    LISTEN      18365/clash
tcp        0      0 :::7893                 :::*                    LISTEN      18365/clash
tcp        0      0 :::7895                 :::*                    LISTEN      18365/clash
tcp        0      0 :::7890                 :::*                    LISTEN      18365/clash
tcp        0      0 :::7891                 :::*                    LISTEN      18365/clash
tcp        0      0 :::9090                 :::*                    LISTEN      18365/clash
udp        0      0 :::7874                 :::*                                18365/clash
udp        0      0 :::7891                 :::*                                18365/clash
udp        0      0 :::7892                 :::*                                18365/clash
udp        0      0 :::7893                 :::*                                18365/clash
udp        0      0 :::7895                 :::*                                18365/clash

#===================== 测试本机DNS查询(www.baidu.com) =====================#

Server:     127.0.*.*
Address:    127.0.*.*:53

www.baidu.com   canonical name = www.a.shifen.com
Name:   www.a.shifen.com
Address: 157.148.*.*
Name:   www.a.shifen.com
Address: 157.148.*.*

#===================== 测试内核DNS查询(www.instagram.com) =====================#

Dnsmasq 当前默认 resolv 文件:/tmp/resolv.conf.d/resolv.conf.auto

#===================== /tmp/resolv.conf.d/resolv.conf.auto =====================#

# Interface wan0
nameserver 218.85.*.*
nameserver 218.85.*.*
# Interface wan1
nameserver 218.104.*.*
nameserver 58.22.*.*

#===================== 测试本机网络连接(www.baidu.com) =====================#

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: Sat, 02 Nov 2024 02:31:17 GMT
Etag: "575e1f71-115"
Last-Modified: Mon, 13 Jun 2016 02:50:25 GMT
Pragma: no-cache
Server: bfe/1.0.*.*

#===================== 测试本机网络下载(raw.githubusercontent.com) =====================#

HTTP/2 200 
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: "f6037a93c68519d7041a3b4df325b61c424ec255b45dfeb063371319e39b0d96"
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: B5B3:3B763F:5275923:553AFFA:67258EF8
accept-ranges: bytes
date: Sat, 02 Nov 2024 02:31:23 GMT
via: 1.1 varnish
x-served-by: cache-bur-kbur8200095-BUR
x-cache: MISS
x-cache-hits: 0
x-timer: S1730514684.603540,VS0,VE158
vary: Authorization,Accept-Encoding,Origin
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 202853646e3e865d4e81908b1640f1dc75ec4e38
expires: Sat, 02 Nov 2024 02:36:23 GMT
source-age: 0
content-length: 1071

#===================== 最近运行日志(自动切换为Debug模式) =====================#

time="2024-11-02T10:31:24.324421476+08:00" level=debug msg="[Rule] use default rules"
time="2024-11-02T10:31:24.324529185+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://1.1.*.*:53"
time="2024-11-02T10:31:24.324547279+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://119.29.*.*:53"
time="2024-11-02T10:31:24.324539136+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://8.8.*.*:53"
time="2024-11-02T10:31:24.324543672+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://114.114.*.*:53"
time="2024-11-02T10:31:24.345268475+08:00" level=debug msg="[DNS] alive.github.com --> [140.82.*.*] A from udp://119.29.*.*:53"
time="2024-11-02T10:31:24.345327632+08:00" level=debug msg="[DNS] resolve alive.github.com A from https://dns.google:443/dns-query"
time="2024-11-02T10:31:24.345336371+08:00" level=debug msg="[DNS] resolve alive.github.com A from https://dns.cloudflare.com:443/dns-query"
time="2024-11-02T10:31:24.345426422+08:00" level=debug msg="[DNS] cache hit dns.google --> [8.8.*.* 8.8.*.*] A, expire at 2024-11-02 10:41:29"
time="2024-11-02T10:31:24.345461644+08:00" level=debug msg="[DNS] cache hit dns.cloudflare.com --> [104.16.*.* 104.16.*.*] A, expire at 2024-11-02 10:34:52"
time="2024-11-02T10:31:27.879061761+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAAcAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879093765+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879139867+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879164025+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879146673+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879214869+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879206913+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879239739+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.87924127+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879282875+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879277306+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAAcAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.87931929+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879329059+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAAcAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879339098+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.879349469+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAAcAAE\": context deadline exceeded"
time="2024-11-02T10:31:27.879361446+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.925391112+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:27.925408997+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.925410271+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:27.925430661+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.925472267+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:27.92548278+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.925493543+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:27.925506261+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:27.925563244+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from udp://1.1.*.*:53"
time="2024-11-02T10:31:27.925567458+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from udp://119.29.*.*:53"
time="2024-11-02T10:31:27.925571817+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from udp://114.114.*.*:53"
time="2024-11-02T10:31:27.925576385+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from udp://8.8.*.*:53"
time="2024-11-02T10:31:27.951426489+08:00" level=debug msg="[DNS] raw.githubusercontent.com --> [185.199.*.* 185.199.*.* 185.199.*.* 185.199.*.*] A from udp://8.8.*.*:53"
time="2024-11-02T10:31:27.951486979+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from https://dns.google:443/dns-query"
time="2024-11-02T10:31:27.951555318+08:00" level=debug msg="[DNS] resolve raw.githubusercontent.com A from https://dns.cloudflare.com:443/dns-query"
time="2024-11-02T10:31:27.951614737+08:00" level=debug msg="[DNS] cache hit dns.cloudflare.com --> [104.16.*.* 104.16.*.*] A, expire at 2024-11-02 10:34:52"
time="2024-11-02T10:31:27.951569451+08:00" level=debug msg="[DNS] cache hit dns.google --> [8.8.*.* 8.8.*.*] A, expire at 2024-11-02 10:41:29"
time="2024-11-02T10:31:29.32489032+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAABWFsaXZlBmdpdGh1YgNjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:29.324942135+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:29.324972553+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAABWFsaXZlBmdpdGh1YgNjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:29.32500985+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAABWFsaXZlBmdpdGh1YgNjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:29.324982503+08:00" level=debug msg="[DNS] resolve alive.github.com error: context deadline exceeded"
time="2024-11-02T10:31:29.32505585+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:29.325062524+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:29.325165044+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAABWFsaXZlBmdpdGh1YgNjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:29.325182426+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:29.325586835+08:00" level=debug msg="[Process] find process error for alive.github.com: process not found"
time="2024-11-02T10:31:29.484131589+08:00" level=info msg="[TCP] 192.168.*.*:8405 --> alive.github.com:443 match Match using 🐟 Other[JMS-906288@c36s3.portablesubmarines.com:6721]"
time="2024-11-02T10:31:29.993623535+08:00" level=debug msg="[Rule] use default rules"
time="2024-11-02T10:31:29.993704525+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://1.1.*.*:53"
time="2024-11-02T10:31:29.993740069+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://8.8.*.*:53"
time="2024-11-02T10:31:29.993759777+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://119.29.*.*:53"
time="2024-11-02T10:31:29.99376217+08:00" level=debug msg="[DNS] resolve alive.github.com A from udp://114.114.*.*:53"
time="2024-11-02T10:31:30.01427949+08:00" level=debug msg="[DNS] alive.github.com --> [140.82.*.*] A from udp://114.114.*.*:53"
time="2024-11-02T10:31:30.014330632+08:00" level=debug msg="[DNS] resolve alive.github.com A from https://dns.google:443/dns-query"
time="2024-11-02T10:31:30.014349908+08:00" level=debug msg="[DNS] resolve alive.github.com A from https://dns.cloudflare.com:443/dns-query"
time="2024-11-02T10:31:30.014421229+08:00" level=debug msg="[DNS] cache hit dns.google --> [8.8.*.* 8.8.*.*] A, expire at 2024-11-02 10:41:29"
time="2024-11-02T10:31:30.014446972+08:00" level=debug msg="[DNS] cache hit dns.cloudflare.com --> [104.16.*.* 104.16.*.*] A, expire at 2024-11-02 10:34:52"
time="2024-11-02T10:31:30.375283841+08:00" level=debug msg="[DNS] cache hit ntp.aliyun.com --> [203.107.*.*] A, expire at 2024-11-02 10:31:18"
time="2024-11-02T10:31:30.3753511+08:00" level=debug msg="[DNS] resolve ntp.aliyun.com A from udp://1.1.*.*:53"
time="2024-11-02T10:31:30.375384997+08:00" level=debug msg="[DNS] resolve ntp.aliyun.com A from udp://119.29.*.*:53"
time="2024-11-02T10:31:30.375418341+08:00" level=debug msg="[DNS] resolve ntp.aliyun.com A from udp://8.8.*.*:53"
time="2024-11-02T10:31:30.375419644+08:00" level=debug msg="[DNS] resolve ntp.aliyun.com A from udp://114.114.*.*:53"
time="2024-11-02T10:31:30.396436046+08:00" level=debug msg="[DNS] ntp.aliyun.com --> [203.107.*.*] A from udp://119.29.*.*:53"
time="2024-11-02T10:31:31.007191051+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAABWFsaXZlBmdpdGh1YgNjb20AAAEAAQ\": read tcp 120.41.*.*:41666->104.16.*.*:443: read: connection reset by peer"
time="2024-11-02T10:31:31.007219708+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:32.926527968+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:32.926572043+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:32.926592239+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:32.92661381+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:32.926630187+08:00" level=debug msg="re-creating the http client due to requesting https://dns.google:443/dns-query: Get \"https://dns.google:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:32.926644939+08:00" level=debug msg="[https://dns.google:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-11-02T10:31:32.926657979+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAAA3JhdxFnaXRodWJ1c2VyY29udGVudANjb20AAAEAAQ\": context deadline exceeded"
time="2024-11-02T10:31:32.926670638+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>"

#===================== 最近运行日志获取完成(自动切换为silent模式) =====================#

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

1. SourceIP:【192.168.*.*】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
2. SourceIP:【192.168.*.*】 - Host:【avatars0.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
3. SourceIP:【192.168.*.*】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
4. SourceIP:【192.168.*.*】 - Host:【nav-edge.smartscreen.microsoft.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
5. SourceIP:【192.168.*.*】 - Host:【avatars1.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
6. SourceIP:【192.168.*.*】 - Host:【www.instagram.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
7. SourceIP:【192.168.*.*】 - Host:【avatars2.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
8. SourceIP:【192.168.*.*】 - Host:【qqwry.api.skk.moe】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
9. SourceIP:【192.168.*.*】 - Host:【avatars2.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
10. SourceIP:【192.168.*.*】 - Host:【www.bing.com】 - DestinationIP:【202.89.*.*】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
11. SourceIP:【192.168.*.*】 - Host:【api-ipv4.ip.sb】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
12. SourceIP:【192.168.*.*】 - Host:【api.ipify.org】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
13. SourceIP:【192.168.*.*】 - Host:【avatars3.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
14. SourceIP:【192.168.*.*】 - Host:【gator.volces.com】 - DestinationIP:【117.24.*.*】 - Network:【tcp】 - RulePayload:【cn】 - Lastchain:【DIRECT】
15. SourceIP:【192.168.*.*】 - Host:【avatars1.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
16. SourceIP:【192.168.*.*】 - Host:【raw.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
17. SourceIP:【192.168.*.*】 - Host:【functional.events.data.microsoft.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
18. SourceIP:【192.168.*.*】 - Host:【www.youtube.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【YouTube】 - Lastchain:【JMS-906288@c36s4.portablesubmarines.com:6721】
19. SourceIP:【192.168.*.*】 - Host:【avatars3.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
20. SourceIP:【192.168.*.*】 - Host:【a.nel.cloudflare.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
21. SourceIP:【192.168.*.*】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
22. SourceIP:【192.168.*.*】 - Host:【analytics.immersivetranslate.com】 - DestinationIP:【27.36.*.*】 - Network:【tcp】 - RulePayload:【cn】 - Lastchain:【DIRECT】
23. SourceIP:【192.168.*.*】 - Host:【edge.microsoft.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
24. SourceIP:【192.168.*.*】 - Host:【www.wxscs.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
25. SourceIP:【192.168.*.*】 - Host:【www.qiuxiaoshuo.org】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
26. SourceIP:【192.168.*.*】 - Host:【avatars1.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
27. SourceIP:【192.168.*.*】 - Host:【cdnjs.cloudflare.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
28. SourceIP:【192.168.*.*】 - Host:【dyn-2.keepa.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
29. SourceIP:【192.168.*.*】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
30. SourceIP:【192.168.*.*】 - Host:【assets.msn.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
31. SourceIP:【192.168.*.*】 - Host:【d.skk.moe】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
32. SourceIP:【192.168.*.*】 - Host:【avatars1.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
33. SourceIP:【192.168.*.*】 - Host:【edge.microsoft.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【Microsoft】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
34. SourceIP:【192.168.*.*】 - Host:【Empty】 - DestinationIP:【20.205.*.*】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
35. SourceIP:【192.168.*.*】 - Host:【cmp1-lax1.steamserver.net】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
36. SourceIP:【192.168.*.*】 - Host:【www.wxscs.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
37. SourceIP:【192.168.*.*】 - Host:【subscribe.insight.synology.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
38. SourceIP:【192.168.*.*】 - Host:【api.ipify.org】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】
39. SourceIP:【192.168.*.*】 - Host:【avatars1.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【】 - Lastchain:【JMS-906288@c36s3.portablesubmarines.com:6721】


### OpenClash Config

_No response_

### Expected Behavior

proxy-provider能够自动更新

### Additional Context

_No response_
fejeIaqbhbv commented 2 weeks ago

在更新meta内核之前正常,不确定是否是meta内核引起的

3e966e8这个内核在我这没问题

v0.46.048-beta无法回退旧版内核无法排查

https://github.com/vernesong/OpenClash/commits/core/dev/meta 手动下载上传 (或者OpenClash里切master分支应该也可以下到旧版内核)

vernesong commented 2 weeks ago

provider的配置看不到,手动更新后查看debug日志检查连接是否有问题