-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLaincat.conf
84 lines (80 loc) · 9.97 KB
/
Laincat.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[General]
loglevel = warning
dns-server = 119.29.29.29, 223.5.5.5, 223.6.6.6, system
# 一般情况下不需要使用加密DNS,但是我遇到过一次半次污染,所以启用了,另外启用加密DNS有时候,本地测速会速度过低的情况。建议本地测速的时候禁用该设置(前面加“#”处理,测完再删)
encrypted-dns-server = https://doh.pub/dns-query, quic://dns.alidns.com
doh-skip-cert-verification = true
ipv6 = true
proxy-test-url = http://cp.cloudflare.com/generate_204
internet-test-url = http://wifi.vivo.com.cn/generate_204
test-timeout = 5
allow-wifi-access = true
allow-hotspot-access = true
external-controller-access = [email protected]:6170
http-api-web-dashboard = true
http-listen = 0.0.0.0:7890
socks5-listen = 0.0.0.0:7891
geoip-maxmind-url = https://raw.githubusercontent.com/JohnnySun/geoip/release/Country.mmdb
all-hybrid = true
ipv6-vif = auto
udp-priority = true
http-api = [email protected]:6171
http-api-tls = true
use-local-host-item-for-proxy = true
wifi-access-http-port = 7890
wifi-access-socks5-port = 7891
exclude-simple-hostnames = true
[Proxy Group]
# > 订阅部分
订阅改名-01 = select, policy-path=订阅地址, update-interval=10800, no-alert=0, hidden=0, include-all-proxies=0
订阅改名-02 = select, policy-path=订阅地址,下面选项还添加了一个正则表达,排除了带有“Premium”的,注意修改或去掉, update-interval=10800, policy-regex-filter=^(?!.*Premium), no-alert=0, hidden=0, include-all-proxies=0
# > 策略部分(自行增减引用的策略组)
nProxy = select, DIRECT, AutoGroup, 订阅改名-01, 订阅改名-02, Ponte, no-alert=0, hidden=0, include-all-proxies=0
Proxy = select, DIRECT, AutoGroup, 订阅改名-01, 订阅改名-02, Ponte, no-alert=0, hidden=0, include-all-proxies=0
# > 汇总测速,均衡,或其他需求
# 自动组
AutoGroup = select, Speed-HK, Speed-SG, Speed-JP, Speed-TW, Speed-US, LB-HK, LB-JP, LB-SG, LB-TW, LB-US, DEVICE:Ponte-01, DEVICE:Ponte-02, no-alert=0, hidden=0, include-all-proxies=0
Custom = select, Ponte, Speed-HK, Speed-SG, Speed-JP, Speed-TW, Speed-US, LB-HK, LB-JP, LB-SG, LB-TW, LB-US, DEVICE:Ponte-01, DEVICE:Ponte-02, no-alert=0, hidden=0, include-all-proxies=0
# “Ponte 设备”组,默认我设置为 负载均衡(load-balance),你可以修改为 智能(smart),手动选择(select)等等。
Device = load-balance, DEVICE:Ponte-01, DEVICE:Ponte-02, no-alert=1, hidden=1, include-all-proxies=0, persistent=0
# 是上一条策略的前置,只有在局域网的状态下才使用 Ponte 设备。或者可以设置为局域网内的 clash 节点,当然前提是你需要添加局域网的节点代理到代理项。不一定是 Ponte。
Ponte = subnet, default = AutoGroup, "SSID:你可以访问 Ponte 的 WiFi 名" = Device, hidden = true
# > 自动部分
Speed-HK = smart, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇭🇰|港|HK|Hong, include-other-group="订阅改名-01, 订阅改名-02"
Speed-JP = smart, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇯🇵|日|东京|JP|Japan, include-other-group="订阅改名-01, 订阅改名-02"
Speed-SG = smart, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇸🇬|新加坡|狮|SG|Singapore, include-other-group="订阅改名-01, 订阅改名-02"
Speed-TW = smart, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇹🇼|台|TW|Tai, include-other-group="订阅改名-01, 订阅改名-02"
Speed-US = smart, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇺🇸|美|US|United States, include-other-group="订阅改名-01, 订阅改名-02"
LB-HK = load-balance, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇭🇰|港|HK|Hong, include-other-group="订阅改名-01, 订阅改名-02", persistent=0
LB-JP = load-balance, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇯🇵|日|东京|JP|Japan, include-other-group="订阅改名-01, 订阅改名-02", persistent=0
LB-SG = load-balance, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇸🇬|新加坡|狮|SG|Singapore, include-other-group="订阅改名-01, 订阅改名-02", persistent=0
LB-TW = load-balance, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇹🇼|台|TW|Tai, include-other-group="订阅改名-01, 订阅改名-02", persistent=0
LB-US = load-balance, update-interval=21600, no-alert=1, hidden=1, include-all-proxies=0, policy-regex-filter=🇺🇸|美|US|United States, include-other-group="订阅改名-01, 订阅改名-02", persistent=0
[Rule]
# > Other
RULE-SET,https://raw.githubusercontent.com/laincat/Rules/main/Surge/Ruleset/Special.list,nProxy,extended-matching,update-interval=21600
# > Custom
RULE-SET,https://kelee.one/Tool/Loon/Rule/AI.list,Speed-US,update-interval=21600
# stream-link.org 有些特殊,自行了解就明白该规则的作用,如果没需要可有注释掉
RULE-SET,https://raw.githubusercontent.com/laincat/Rules/main/Surge/Ruleset/stream-link.list,Nachoneko,extended-matching
RULE-SET,https://raw.githubusercontent.com/laincat/Rules/main/Surge/Ruleset/Custom.list,Proxy,extended-matching,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/laincat/Rules/main/Surge/Ruleset/Japan.list,Custom,extended-matching,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/laincat/Rules/main/Surge/Ruleset/Comics.list,Custom,extended-matching,update-interval=21600
# > Rulesets
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AppleProxy/AppleProxy.list,Proxy,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All.list,nProxy,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Proxy,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All.list,Proxy,extended-matching,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China_All.list,nProxy,extended-matching,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/ASN.China.list,nProxy,update-interval=21600
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Lan/Lan.list,nProxy,update-interval=21600
# GEOIP,CN,nProxy,no-resolve
FINAL,Proxy,dns-failed
[SSID Setting]
# SSID:想停用加密DNS的局域网WiFi名 encrypted-dns-server="off"
[MITM]
skip-server-cert-verify = true
tcp-connection = true
h2 = true
ca-passphrase = laincatx
ca-p12 = MIIJeQIBAzCCCT8GCSqGSIb3DQEHAaCCCTAEggksMIIJKDCCA98GCSqGSIb3DQEHBqCCA9AwggPMAgEAMIIDxQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIYdG5FidaDZ8CAggAgIIDmPZ94l6mBOEquDFR9Z4oemrbdhYxTkt99GYvP6z9MLLuZ/vdiuzWMvs5aTZElntIkWfGQBlKZmVCvh2ceeBUfWIAA1qxr4sYmGH0imlqSJwznNfRyFlbPGKKUnww+jF08SJR7Z/8NvsbHdqLstGIa2m4j/QixCr6I1IkFoQob67JbmBGZqpsKw4/N1UD7lNYNQZiYm2Swqx2WycQ3j71AsFQnvL3JqEZDtOP1g3ft9PYUfftXM7eiKXmh++KrV0LqPqe8WXWlyVpYH/GMfWsS5qOw4bvF9W43PIi7fyNXxPt3MrMq59YSJ0ejKif8HTJmvlY3/BgbyjyLqYAFE0voXtq5VYajnq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