更新 config/flclash/flclash.yaml
This commit is contained in:
+72
-19
@@ -9,33 +9,86 @@ 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:53
|
listen: 0.0.0.0:7874
|
||||||
ipv6: false
|
enhanced-mode: fake-ip
|
||||||
|
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://doh.pub/dns-query
|
- https://1.1.1.1/dns-query
|
||||||
- https://dns.alidns.com/dns-query
|
- https://8.8.8.8/dns-query
|
||||||
fallback:
|
nameserver-policy:
|
||||||
- https://doh-pure.onedns.net/dns-query
|
'geosite:cn,apple,private':
|
||||||
- https://ada.openbld.net/dns-query
|
|
||||||
- https://223.5.5.5/dns-query
|
- https://223.5.5.5/dns-query
|
||||||
- https://223.6.6.6/dns-query
|
- https://doh.pub/dns-query
|
||||||
fallback-filter:
|
- system
|
||||||
geoip: true
|
'rule-set:salem@cn': [https://223.5.5.5/dns-query, https://doh.pub/dns-query]
|
||||||
ipcidr:
|
'geosite:geolocation-!cn,google,category-ai-!cn':
|
||||||
- 240.0.0.0/4
|
- https://1.1.1.1/dns-query#Google
|
||||||
- 0.0.0.0/32
|
- 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'
|
||||||
|
|
||||||
# 本地服务器
|
# 本地服务器
|
||||||
proxies:
|
proxies:
|
||||||
|
- {name: "🟢 直连", type: direct, udp: true, ip-version: ipv4}
|
||||||
|
|
||||||
# 订阅引用相关
|
# 订阅引用相关
|
||||||
u: &u {type: select, use: [Salem]}
|
u: &u {type: select, use: [Salem]}
|
||||||
@@ -53,9 +106,9 @@ proxy-providers:
|
|||||||
# 代理组相关
|
# 代理组相关
|
||||||
o1: &o1 {type: select, use: [Salem], proxies: []}
|
o1: &o1 {type: select, use: [Salem], proxies: []}
|
||||||
o2: &o2 {type: select, use: [Salem], proxies: ['节点选择']}
|
o2: &o2 {type: select, use: [Salem], proxies: ['节点选择']}
|
||||||
o3: &o3 {type: select, use: [Salem], proxies: ['DIRECT', '节点选择']}
|
o3: &o3 {type: select, use: [Salem], proxies: ['🟢 直连', '节点选择']}
|
||||||
o4: &o4 {type: select, use: [Salem], proxies: ['节点选择', 'DIRECT']}
|
o4: &o4 {type: select, use: [Salem], proxies: ['节点选择', '🟢 直连']}
|
||||||
o5: &o5 {type: select, use: [Salem], proxies: ['REJECT', 'DIRECT']}
|
o5: &o5 {type: select, use: [Salem], proxies: ['REJECT', '🟢 直连']}
|
||||||
g5: &g5 {type: select, include-all: true}
|
g5: &g5 {type: select, include-all: true}
|
||||||
|
|
||||||
# 代理组
|
# 代理组
|
||||||
|
|||||||
Reference in New Issue
Block a user