mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2024-12-27 17:49:17 +08:00
139 lines
9.1 KiB
Plaintext
139 lines
9.1 KiB
Plaintext
# Sample Quantumult Configuration
|
||
#
|
||
# Line started with ";" or "#" or "//" shall be comments.
|
||
# 以 ";" 或 "#" 或 "//" 开头的行为注释行。
|
||
#
|
||
# SS-URI scheme can be found at https://shadowsocks.org/en/spec/SIP002-URI-Scheme.html
|
||
#
|
||
# Quantumult uses HEAD method send HTTP request to the server_check_url to test the proxy's status, the results should be two latencies, the first one is TCP handshake to the proxy server, the second one is the total time that Quantumult successfully received the HTTP response from the server_check_url. The lightning icon means that the TCP fast open is successful. If the server in section [server_local] or section [server_remote] has its own server_check_url, its own server_check_url will be used instead of the server_check_url in section [general].
|
||
#
|
||
# Quantumult 使用 HTTP HEAD 方法对测试网址(server_check_url)进行网页响应性测试(测试结果为通过该节点访问此网页获得响应所需要的时间),来确认节点的可用性。
|
||
# Quantumult 界面中的延迟测试方式均为网页响应性测试,显示的最终延迟均为通过对应节点访问测试网页获得响应所需要时间。
|
||
#
|
||
# The dns_exclusion_list contains the domains that disabled the placeholder IP(240.*), domains that are not in the dns_exclusion_list all have placeholder IP enabled and have turned on the resolve-on-remote setting.
|
||
#
|
||
# The udp_whitelist contains the destination UDP port, empty means all the ports are in udp_whitelist. UDP packtes(through Quantumult tunnel interface) with destination ports that are not in the udp_whitelist will be dropped. This setting has nothing to do with the policy and has nothing to do with the proxy(server) port either.
|
||
#
|
||
# The traffic to excluded_routes will not be handled by Quantumult. It is better to reboot your device after modification.
|
||
#
|
||
|
||
[general]
|
||
;server_check_url=http://www.google.com/generate_204
|
||
;geo_location_checker=http://www.example.com/json/, https://www.example.com/script.js
|
||
;dns_exclusion_list=*.qq.com, qq.com, *.cmpassport.com
|
||
;ssid_suspended_list=LINK_22E174, LINK_22E175
|
||
;udp_whitelist=53, 123, 1900, 80-443
|
||
;excluded_routes= 192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8
|
||
;icmp_auto_reply=true
|
||
|
||
#
|
||
# The DNS servers fetched from current network will always be used for better performance.
|
||
# The result of query will only be used for evaluating filter or connecting through direct policy, when connecting through server the result will not be used and Quantumult will never know the destination IP of related domain.
|
||
# Specially directly set 127.0.0.1 for a domain is not allowed in here. if you want some domain(eg: example.com) to be 127.0.0.1, just add "host, example.com, reject" to the "filter_local" section. The reject action will return DNS response with 127.0.0.1 to the query.
|
||
#
|
||
[dns]
|
||
server=1.1.1.1
|
||
server=8.8.8.8
|
||
;server=8.8.4.4:53
|
||
;server=/example1.com/8.8.4.4
|
||
;server=/*.example2.com/223.5.5.5
|
||
;server=/example4.com/[2001:4860:4860::8888]:53
|
||
;address=/example5.com/192.168.16.18
|
||
;address=/example6.com/[2001:8d3:8d3:8d3:8d3:8d3:8d3:8d3]
|
||
|
||
|
||
#
|
||
# static policy points to the server in candidates you manually selected.
|
||
# available policy points to the first available server in candidates based on server_check_url(concurrent url latency test will be immediately launched when the policy has been triggered and the policy result is unavailable).
|
||
# round-robin policy points to the next server in candidates for next connection.
|
||
# ssid policy points to the server depending on the network environment.
|
||
#
|
||
[policy]
|
||
;static=policy-name-1, Sample-A, Sample-B, Sample-C, img-url=http://example.com/icon.png
|
||
;available=policy-name-2, Sample-A, Sample-B, Sample-C
|
||
;round-robin=policy-name-3, Sample-A, Sample-B, Sample-C
|
||
;ssid=policy-name-4, Sample-A, Sample-B, LINK_22E171:Sample-B, LINK_22E172:Sample-C
|
||
|
||
#
|
||
# Params "tag" and "enabled" are optional.
|
||
# The default sync interval for all kinds of remote resources is 24*60*60 seconds.
|
||
#
|
||
[server_remote]
|
||
;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server.txt, tag=Sample-01
|
||
;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server-complete.txt, tag=Sample-02, enabled=false
|
||
|
||
#
|
||
# Params "tag", "force-policy" and "enabled" are optional.
|
||
# When there is a force-policy, then the policy in filter of remote resource will be ignored and the force-policy will be used.
|
||
#
|
||
[filter_remote]
|
||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_bot/master/source/connershua/Quantumult/X/Filter/Unbreak.list, tag=Unbreak, enabled=true
|
||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_bot/master/source/connershua/Quantumult/X/Filter/Advertising.list, tag=Advertising, enabled=true
|
||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_bot/master/source/connershua/Quantumult/X/Filter/BacktoCN.list, tag=BacktoCN, enabled=true
|
||
;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/filter.txt, tag=Sample, force-policy=your-policy-name, enabled=true
|
||
|
||
#
|
||
# Params "tag" and "enabled" are optional.
|
||
#
|
||
[rewrite_remote]
|
||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_bot/master/source/connershua/Quantumult/X/Rewrite.conf, tag=DivineEngine Rewrite, enabled=true
|
||
;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/sample-import-rewrite.txt, tag=Sample, enabled=true
|
||
|
||
#
|
||
# Only obfs=http, obfs=ws, obfs=wss can have optional "obfs-uri" field.
|
||
# When using obfs=ws and obfs=wss the server side can be deployed by v2ray-plugin with mux = 0 or by v2ray-core.
|
||
#
|
||
[server_local]
|
||
;shadowsocks=ss-a.example.com:80, method=chacha20, password=pwd, obfs=http, obfs-host=bing.com, obfs-uri=/resource/file, fast-open=false, udp-relay=false, server_check_url=http://www.apple.com/generate_204, tag=Sample-A
|
||
;shadowsocks=ss-b.example.com:80, method=chacha20, password=pwd, obfs=http, obfs-host=bing.com, obfs-uri=/resource/file, fast-open=false, udp-relay=false, tag=Sample-B
|
||
;shadowsocks=ss-c.example.com:443, method=chacha20, password=pwd, obfs=tls, obfs-host=bing.com, fast-open=false, udp-relay=false, tag=Sample-C
|
||
;shadowsocks=ssr-a.example.com:443, method=chacha20, password=pwd, ssr-protocol=auth_chain_b, ssr-protocol-param=def, obfs=tls1.2_ticket_fastauth, obfs-host=bing.com, tag=Sample-D
|
||
;shadowsocks=ws-a.example.com:80, method=aes-128-gcm, password=pwd, obfs=ws, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=Sample-E
|
||
;shadowsocks=ws-b.example.com:80, method=aes-128-gcm, password=pwd, obfs=ws, fast-open=false, udp-relay=false, tag=Sample-F
|
||
;shadowsocks=ws-tls-a.example.com:443, method=aes-128-gcm, password=pwd, obfs=wss, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=Sample-G
|
||
|
||
[filter_local]
|
||
;user-agent, ?abc*, proxy
|
||
;host, www.google.com, proxy
|
||
;host-keyword, adsite, reject
|
||
;host-suffix, googleapis.com, proxy
|
||
ip-cidr, 10.0.0.0/8, direct
|
||
ip-cidr, 127.0.0.0/8, direct
|
||
ip-cidr, 172.16.0.0/12, direct
|
||
ip-cidr, 192.168.0.0/16, direct
|
||
ip-cidr, 224.0.0.0/24, direct
|
||
final, direct
|
||
|
||
|
||
#
|
||
# The "reject" returns HTTP status code 404 with no content.
|
||
# The "reject-200" returns HTTP status code 200 with no content.
|
||
# The "reject-img" returns HTTP status code 200 with content of 1px gif.
|
||
# The "reject-dict" returns HTTP status code 200 with content of empty json object.
|
||
# The "reject-array" returns HTTP status code 200 with content of empty json array.
|
||
# The "request-header" works for all the http headers not just one single header, so you can match two or more headers including CRLF in one regular expression.
|
||
# The length and encoding related HTTP header fields will be automatically processed by Quantumult if the "rewrite" is body related, so you should not handle them by yourself. The max supported response size is 32kB for response-body and script-response-body.
|
||
# When using javascript in rewrite, you can use those objects: $request, $response, $notify(title, subtitle, message), console.log(message) and Quantumult's built-in objects all have prefix "$".
|
||
# Supports: $request.scheme, $request.method, $request.url, $request.path, $request.headers, $response.statusCode, $response.headers, $response.body
|
||
# The $notify(title, subtitle, message) will post iOS notifications if Quantumult notification has been enabled.
|
||
# The console.log(message) will output logs to Quantumult log file if the log level is "debug".
|
||
#
|
||
[rewrite_local]
|
||
;^http://example\.com/resource1/1/ url reject
|
||
;^http://example\.com/resource1/2/ url reject-img
|
||
;^http://example\.com/resource1/3/ url reject-200
|
||
;^http://example\.com/resource1/4/ url reject-dict
|
||
;^http://example\.com/resource1/5/ url reject-array
|
||
;^http://example\.com/resource2/ url 302 http://example.com/new-resource2/
|
||
;^http://example\.com/resource3/ url 307 http://example.com/new-resource3/
|
||
;^http://example\.com/resource4/ url request-header (\r\n)User-Agent:.+(\r\n) request-header $1User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36$2
|
||
;^http://example\.com/resource5/ url response-body "info":\[.+\],"others" response-body "info":[],"others"
|
||
;^http://example\.com/resource6/ url script-response-body https://example.com/script.js
|
||
|
||
[mitm]
|
||
;passphrase =
|
||
;p12 =
|
||
;skip_validating_cert = false
|
||
;force_sni_domain_name = false
|
||
;hostname = *.example.com, *.sample.com
|