更新 config/flcalsh/flclash.yaml

This commit is contained in:
2026-08-27 14:31:40 +08:00
parent 0f025322fe
commit 2135053352
+18 -70
View File
@@ -9,82 +9,30 @@ mode: rule
log-level: info
external-controller: 127.0.0.1:9090
tun:
enable: true # 1. 必须改为 true 才能真正启用
stack: mixed # 2. 改为 mixed 性能最好,或者用 system
auto-route: true
strict-route: true # 3. 建议改为 true,开启严格路由模式,能够更彻底地封死特定软件绕过代理的行为
auto-detect-interface: true
dns-hijack:
- any:53 # 4. 修正了这里的空格缩进,强行劫持全部本地 DNS 请求
dns:
enable: true
listen: 0.0.0.0:7874
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
use-hosts: true
use-system-hosts: true
# listen: 0.0.0.0:53
ipv6: false
default-nameserver:
- 223.5.5.5
- 119.29.29.29
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
use-hosts: true
nameserver:
- https://1.1.1.1/dns-query
- https://8.8.8.8/dns-query
nameserver-policy:
'geosite:cn,apple,private':
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
- system
'rule-set:salem@cn': [https://223.5.5.5/dns-query, https://doh.pub/dns-query]
'geosite:geolocation-!cn,google,category-ai-!cn':
- https://1.1.1.1/dns-query#Google
- https://8.8.8.8/dns-query#Google
proxy-server-nameserver:
- 223.5.5.5
- 119.29.29.29
fake-ip-filter:
- '*.lan'
- "rule-set:salem@cn,GitHub,fake-ip-filter"
- 'geosite:cn'
#STUN
- '+.stun.*.*'
- '+.stun.*.*.*'
- '+.stun.*.*.*.*'
- '+.stun.*.*.*.*.*'
- 'stun.*'
- 'ntp.*.com'
- 'time.*.com'
- 'ntp?.*.com'
- 'time?.*.com'
- 'time.*.gov'
- 'time.*.edu.cn'
#微信登录
- 'localhost.*.weixin.qq.com'
- 'localhost.*.qq.com'
#放行NTP服务
- 'time.*.apple.com'
- 'time-ios.apple.com'
- 'time1.*.com'
- 'time2.*.com'
- 'time3.*.com'
- 'time4.*.com'
- 'time5.*.com'
- 'time6.*.com'
- 'time7.*.com'
- 'ntp1.*.com'
- 'ntp2.*.com'
- 'ntp3.*.com'
- 'ntp4.*.com'
- 'ntp5.*.com'
- 'ntp6.*.com'
- 'ntp7.*.com'
#Microsoft Xbox
- 'xbox.*.*.microsoft.com'
- '*.*.xboxlive.com'
- 'xbox.*.microsoft.com'
- '*.xboxlive.com'
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
fallback:
- https://doh-pure.onedns.net/dns-query
- https://ada.openbld.net/dns-query
- https://223.5.5.5/dns-query
- https://223.6.6.6/dns-query
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
# 本地服务器
proxies: