更新 config/flcalsh/flclash.yaml
This commit is contained in:
+18
-70
@@ -9,82 +9,30 @@ mode: rule
|
|||||||
log-level: info
|
log-level: info
|
||||||
external-controller: 127.0.0.1:9090
|
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:
|
dns:
|
||||||
enable: true
|
enable: true
|
||||||
listen: 0.0.0.0:7874
|
# listen: 0.0.0.0:53
|
||||||
enhanced-mode: fake-ip
|
ipv6: false
|
||||||
fake-ip-range: 198.18.0.1/16
|
|
||||||
use-hosts: true
|
|
||||||
use-system-hosts: true
|
|
||||||
default-nameserver:
|
default-nameserver:
|
||||||
- 223.5.5.5
|
- 223.5.5.5
|
||||||
- 119.29.29.29
|
- 119.29.29.29
|
||||||
|
enhanced-mode: fake-ip
|
||||||
|
fake-ip-range: 198.18.0.1/16
|
||||||
|
use-hosts: true
|
||||||
nameserver:
|
nameserver:
|
||||||
- https://1.1.1.1/dns-query
|
- https://doh.pub/dns-query
|
||||||
- https://8.8.8.8/dns-query
|
- https://dns.alidns.com/dns-query
|
||||||
nameserver-policy:
|
fallback:
|
||||||
'geosite:cn,apple,private':
|
- https://doh-pure.onedns.net/dns-query
|
||||||
- https://223.5.5.5/dns-query
|
- https://ada.openbld.net/dns-query
|
||||||
- https://doh.pub/dns-query
|
- https://223.5.5.5/dns-query
|
||||||
- system
|
- https://223.6.6.6/dns-query
|
||||||
'rule-set:salem@cn': [https://223.5.5.5/dns-query, https://doh.pub/dns-query]
|
fallback-filter:
|
||||||
'geosite:geolocation-!cn,google,category-ai-!cn':
|
geoip: true
|
||||||
- https://1.1.1.1/dns-query#Google
|
ipcidr:
|
||||||
- https://8.8.8.8/dns-query#Google
|
- 240.0.0.0/4
|
||||||
proxy-server-nameserver:
|
- 0.0.0.0/32
|
||||||
- 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'
|
|
||||||
|
|
||||||
|
|
||||||
# 本地服务器
|
# 本地服务器
|
||||||
proxies:
|
proxies:
|
||||||
|
|||||||
Reference in New Issue
Block a user