├── LICENSE ├── README.md ├── Telegram.list └── clash_base.yaml /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 XinSSS 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Clash Surge Shadowrocket Quantumult conf 2 | ------ 3 | 使用[Subconvert](https://github.com/tindy2013/subconverter)生成各种很方便的配置文件, 具体使用请查看[Subconvert文档](https://github.com/tindy2013/subconverter/blob/master/README-cn.md), 这里仅提供配置文件参考 4 | 5 | ```ini 6 | [custom] 7 | enable_rule_generator=true 8 | overwrite_original_rules=true 9 | clash_rule_base=https://raw.githubusercontent.com/XinSSS/Conf-for-Surge-Shadowrocket/master/clash_base.yaml 10 | ;设置规则标志位 11 | ruleset=Steam,rules/DivineEngine/Surge/Ruleset/Extra/Game/Steam.list 12 | ruleset=Xbox,rules/DivineEngine/Surge/Ruleset/Extra/Game/Xbox.list 13 | ruleset=OneDrive,rules/DivineEngine/Surge/Ruleset/Extra/Microsoft/OneDrive.list 14 | ruleset=PayPal,rules/DivineEngine/Surge/Ruleset/Extra/PayPal.list 15 | ruleset=Apple,rules/DivineEngine/Surge/Ruleset/Extra/Apple/Apple.list 16 | ruleset=StreamingSE,rules/DivineEngine/Surge/Ruleset/StreamingMedia/StreamingSE.list 17 | ruleset=Streaming,rules/DivineEngine/Surge/Ruleset/StreamingMedia/Streaming.list 18 | ruleset=Telegram,https://raw.githubusercontent.com/XinSSS/Conf-for-Surge-Shadowrocket/master/Telegram.list 19 | ruleset=Proxies,rules/DivineEngine/Surge/Ruleset/Global.list 20 | ruleset=China,rules/DivineEngine/Surge/Ruleset/China.list 21 | ruleset=DIRECT,rules/LocalAreaNetwork.list 22 | ruleset=China,[]GEOIP,CN 23 | ruleset=Final,[]MATCH 24 | ;设置规则标志位 25 | 26 | ;设置分组标志位 27 | custom_proxy_group=Steam`select`[]China`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]DIRECT 28 | custom_proxy_group=Xbox`select`[]China`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]DIRECT 29 | custom_proxy_group=OneDrive`select`[]Proxies`[]China`[]HK`[]SG`[]JP`[]TW`[]DIRECT 30 | custom_proxy_group=PayPal`select`[]China`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]DIRECT 31 | custom_proxy_group=Apple`select`[]China`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]DIRECT 32 | custom_proxy_group=StreamingSE`select`[]China`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]US`[]DIRECT 33 | custom_proxy_group=Streaming`select`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]US 34 | custom_proxy_group=Telegram`select`[]Proxies`[]HK`[]SG`[]JP`[]TW`[]US 35 | custom_proxy_group=Proxies`select`[]HK`[]SG`[]JP`[]TW`[]US`.*`[]DIRECT 36 | custom_proxy_group=China`select`[]DIRECT`?i:CN|China|回国|中国|江苏|北京|上海|广州|深圳|杭州|常州|徐州|青岛|宁波|镇江|back`[]Proxies 37 | custom_proxy_group=Final`select`[]Proxies`[]China`[]DIRECT 38 | custom_proxy_group=HK`select`港|HK 39 | custom_proxy_group=SG`select`新加坡|狮城|新|SG 40 | custom_proxy_group=TW`select`台|新北|彰化|TW 41 | custom_proxy_group=JP`select`日((?!用).)+|东京|大阪|埼玉|JP 42 | custom_proxy_group=US`select`美|洛杉矶|硅谷|达拉斯|费利蒙|凤凰城|芝加哥|圣何塞|西雅图|圣克拉拉|US 43 | ;custom_proxy_group=HK`fallback`港`http://www.gstatic.com/generate_204`300 44 | ;设置分组标志位 45 | ``` 46 | -------------------------------------------------------------------------------- /Telegram.list: -------------------------------------------------------------------------------- 1 | DOMAIN-SUFFIX,t.me 2 | DOMAIN-SUFFIX,tdesktop.com 3 | DOMAIN-SUFFIX,telesco.pe 4 | DOMAIN-SUFFIX,telegram.dog 5 | DOMAIN-SUFFIX,telegram.me 6 | DOMAIN-SUFFIX,telegram.org 7 | DOMAIN-SUFFIX,telegra.ph 8 | IP-CIDR,91.108.56.0/22,no-resolve 9 | IP-CIDR,91.108.4.0/22,no-resolve 10 | IP-CIDR,91.108.8.0/22,no-resolve 11 | IP-CIDR,91.108.16.0/22,no-resolve 12 | IP-CIDR,91.108.12.0/22,no-resolve 13 | IP-CIDR,149.154.160.0/20,no-resolve 14 | IP-CIDR,91.105.192.0/23,no-resolve 15 | IP-CIDR,91.108.20.0/22,no-resolve 16 | IP-CIDR,185.76.151.0/24,no-resolve 17 | IP-CIDR,2001:b28:f23d::/48,no-resolve 18 | IP-CIDR,2001:b28:f23f::/48,no-resolve 19 | IP-CIDR,2001:67c:4e8::/48,no-resolve 20 | IP-CIDR,2001:b28:f23c::/48,no-resolve 21 | IP-CIDR,2a0a:f280::/32,no-resolve -------------------------------------------------------------------------------- /clash_base.yaml: -------------------------------------------------------------------------------- 1 | # HTTP 代理端口 2 | port: 7890 3 | 4 | # SOCKS5 代理端口 5 | socks-port: 7891 6 | 7 | # Linux 和 macOS 的 redir 透明代理端口 (重定向 TCP 和 TProxy UDP 流量) 8 | # redir-port: 7892 9 | 10 | # Linux 的透明代理端口(适用于 TProxy TCP 和 TProxy UDP 流量) 11 | # tproxy-port: 7893 12 | 13 | # 允许局域网的连接(可用来共享代理) 14 | allow-lan: true 15 | bind-address: "*" 16 | # 此功能仅在 allow-lan 设置为 true 时生效,支持三种参数: 17 | # "*" 绑定所有的 IP 地址 18 | # 192.168.122.11 绑定一个的 IPv4 地址 19 | # "[aaaa::a8aa:ff:fe09:57d8]" 绑定一个 IPv6 地址 20 | 21 | # 规则模式:rule(规则) / global(全局代理)/ direct(全局直连) 22 | mode: rule 23 | 24 | # Clash 默认将日志输出至 STDOUT 25 | # 设置日志输出级别 (默认级别:silent,即不输出任何内容,以避免因日志内容过大而导致程序内存溢出)。 26 | # 5 个级别:silent / info / warning / error / debug。级别越高日志输出量越大,越倾向于调试,若需要请自行开启。 27 | log-level: info 28 | 29 | # clash 的 RESTful API 监听地址 30 | external-controller: 127.0.0.1:9090 31 | 32 | # 存放配置文件的相对路径,或存放网页静态资源的绝对路径 33 | # Clash core 将会将其部署在 http://external-controller/ui 34 | # external-ui: folder 35 | 36 | # RESTful API 的口令 (可选) 37 | # 通过 HTTP 头中 Authorization: Bearer ${secret} 参数来验证口令 38 | # 当 RESTful API 的监听地址为 0.0.0.0 时,请务必设定口令以保证安全 39 | # secret: "" 40 | 41 | # 出站网卡接口 42 | # interface-name: en0 43 | 44 | # DNS 服务器和建立连接时的 静态 Hosts, 仅在 dns.enhanced-mode 模式为 redir-host 生效 45 | # 支持通配符域名 (例如: *.clash.dev, *.foo.*.example.com ) 46 | # 不使用通配符的域名优先级高于使用通配符的域名 (例如: foo.example.com > *.example.com > .example.com ) 47 | # 注意: +.foo.com 的效果等同于 .foo.com 和 foo.com 48 | #hosts: 49 | # '*.clash.dev': 127.0.0.1 50 | # '.dev': 127.0.0.1 51 | # 'alpha.clash.dev': '::1' 52 | 53 | # DNS 服务器配置(可选;若不配置,程序内置的 DNS 服务会被关闭) 54 | dns: 55 | enable: true 56 | listen: 0.0.0.0:53 57 | ipv6: true # 当此选项为 false 时, AAAA 请求将返回空 58 | 59 | # 以下填写的 DNS 服务器将会被用来解析 DNS 服务的域名 60 | # 仅填写 DNS 服务器的 IP 地址 61 | default-nameserver: 62 | - 223.5.5.5 63 | - 119.29.29.29 64 | - 8.8.8.8 65 | 66 | # 支持 UDP / TCP / DoT / DoH 协议的 DNS 服务,可以指明具体的连接端口号。 67 | # 所有 DNS 请求将会直接发送到服务器,不经过任何代理。 68 | # Clash 会使用最先获得的解析记录回复 DNS 请求 69 | nameserver: 70 | - 223.5.5.5 71 | - 119.29.29.29 72 | 73 | # 当 fallback 参数被配置时, DNS 请求将同时发送至上方 nameserver 列表和下方 fallback 列表中配置的所有 DNS 服务器. 74 | # 当解析得到的 IP 地址的地理位置不是 CN 时,clash 将会选用 fallback 中 DNS 服务器的解析结果。 75 | #fallback: 76 | #- tls://8.8.8.8:853 77 | #- tls://1.1.1.1:853 78 | 79 | enhanced-mode: fake-ip # 或 redir-host 80 | fake-ip-range: 198.18.0.1/16 # Fake IP 地址池 (CIDR 形式) 81 | # use-hosts: true # 查询 hosts 并返回 IP 记录 82 | 83 | # 在以下列表的域名将不会被解析为 fake ip,这些域名相关的解析请求将会返回它们真实的 IP 地址 84 | fake-ip-filter: 85 | # 以下域名列表参考自 vernesong/OpenClash 项目,并由 Hackl0us 整理补充 https://github.com/Hackl0us/SS-Rule-Snippet/blob/master/LAZY_RULES/Clash_Premium.yaml 86 | - "*.lan" 87 | - "*.linksys.com" 88 | - "*.linksyssmartwifi.com" 89 | - swscan.apple.com 90 | - mesu.apple.com 91 | - "+.msftconnecttest.com" 92 | - "+.msftncsi.com" 93 | - time.*.com 94 | - time.*.gov 95 | - time.*.edu.cn 96 | - time.*.apple.com 97 | - time1.*.com 98 | - time2.*.com 99 | - time3.*.com 100 | - time4.*.com 101 | - time5.*.com 102 | - time6.*.com 103 | - time7.*.com 104 | - ntp.*.com 105 | - ntp1.*.com 106 | - ntp2.*.com 107 | - ntp3.*.com 108 | - ntp4.*.com 109 | - ntp5.*.com 110 | - ntp6.*.com 111 | - ntp7.*.com 112 | - "*.time.edu.cn" 113 | - "*.ntp.org.cn" 114 | - "+.pool.ntp.org" 115 | - time1.cloud.tencent.com 116 | - "+.music.163.com" 117 | - "*.126.net" 118 | - musicapi.taihe.com 119 | - music.taihe.com 120 | - songsearch.kugou.com 121 | - trackercdn.kugou.com 122 | - "*.kuwo.cn" 123 | - api-jooxtt.sanook.com 124 | - api.joox.com 125 | - joox.com 126 | - "+.y.qq.com" 127 | - "+.music.tc.qq.com" 128 | - aqqmusic.tc.qq.com 129 | - "+.stream.qqmusic.qq.com" 130 | - "*.xiami.com" 131 | - "+.music.migu.cn" 132 | - "+.srv.nintendo.net" 133 | - "+.stun.playstation.net" 134 | - xbox.*.microsoft.com 135 | - "+.xboxlive.com" 136 | - localhost.ptlogin2.qq.com 137 | - proxy.golang.org 138 | - stun.*.* 139 | - stun.*.*.* 140 | - "+.battlenet.com.cn" 141 | - "*.ffxiv.com" 142 | - "*.finalfantasyxiv.com" 143 | - "*.square-enix.com" 144 | - "+.nflxvideo.net" 145 | - stun.l.google.com 146 | - lens.l.google.com 147 | - swdist.apple.com 148 | - swcdn.apple.com 149 | - swdownload.apple.com 150 | - swquery.apple.com 151 | - "*.router.asus.com" 152 | - heartbeat.belkin.com 153 | - "+.stun.*.*.*.*" 154 | - "+.stun.*.*.*" 155 | - "+.stun.*.*" 156 | - "+.wargaming.net" 157 | - "+.wowsgame.cn" 158 | - "+.wggames.cn" 159 | - "+.wotgame.cn" 160 | - xnotify.xboxlive.com 161 | - localhost.sec.qq.com 162 | - msftncsi.com 163 | - msftconnecttest.com 164 | - music.migu.cn 165 | - "*.music.migu.cn" 166 | - amobile.music.tc.qq.com 167 | - dl.stream.qqmusic.qq.com 168 | - isure.stream.qqmusic.qq.com 169 | - mobileoc.music.tc.qq.com 170 | - streamoc.music.tc.qq.com 171 | - "*.y.qq.com" 172 | - y.qq.com 173 | - "*.music.163.com" 174 | - music.163.com 175 | - "*.home.arpa" 176 | - "*.local" 177 | - "*.test" 178 | - "*.localhost" 179 | - "*.invalid" 180 | - "*.example" 181 | - "*.localdomain" 182 | - "*.mcdn.bilivideo.cn" 183 | - "+.media.dssott.com" 184 | 185 | # 如果使用 nameserver 列表中的服务器解析的 IP 地址在下方列表中的子网中,则它们被认为是无效的, 186 | # Clash 会选用 fallback 列表中配置 DNS 服务器解析得到的结果。 187 | # 188 | # 当 fallback-filter.geoip 为 true 且 IP 地址的地理位置为 CN 时, 189 | # Clash 会选用 nameserver 列表中配置 DNS 服务器解析得到的结果。 190 | # 191 | # 当 fallback-filter.geoip 为 false, 如果解析结果不在 fallback-filter.ipcidr 范围内, 192 | # Clash 总会选用 nameserver 列表中配置 DNS 服务器解析得到的结果。 193 | # 194 | # 采取以上逻辑进行域名解析是为了对抗 DNS 投毒攻击。 195 | #fallback-filter: 196 | # geoip: false 197 | # ipcidr: 198 | # - 240.0.0.0/4 199 | # - 0.0.0.0/32 200 | # domain: 201 | # - '+.google.com' 202 | # - '+.facebook.com' 203 | # - '+.youtube.com' 204 | tun: 205 | enable: true #如果需要启用 TUN 模式,请设置为 true 206 | stack: system # 或 gvisor 207 | auto-route: true 208 | auto-detect-interface: true 209 | #dns-hijack: 210 | #- tcp://8.8.8.8:53 211 | #- tcp://1.1.1.1:53 212 | --------------------------------------------------------------------------------