# @ConfigName Tickmao自用的Surge配置文件 # @Author Tickmao # @Feedback lyle.lypm@gmail.com # @UpdateTime ⏱2026/07/06 16:26 UTC/GMT +8 # @Function 注释行默认不生效,去掉开头注释符后生效 # @Config https://tickmao.com/ # @Tg https://t.me/mwkds # @ConfigURL https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Surge.conf # @Tips 本配置仅用于学习与测试,请遵守当地法律法规 [General] # 日志级别 loglevel = notify # 节点超时 test-timeout = 5 # 直连测试 URL internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204 # 代理测速 URL proxy-test-url = http://cp.cloudflare.com/generate_204 # 游戏优化: 开启后优先处理 UDP 数据,会增加系统负载 udp-priority = false # UDP 回退行为 udp-policy-not-supported-behaviour = REJECT # 从 /etc/hosts 读取 DNS 记录 read-etc-hosts = true # DNS 服务器 dns-server = system, 223.5.5.5, 119.29.29.29, 180.76.76.76 # 启用 DoH 提升安全性与防劫持 encrypted-dns-server = https://223.5.5.5/dns-query, https://1.1.1.1/dns-query, https://doh.pub/dns-query # IPv6 DNS 查询 ipv6 = false # IPv6 VIF 模式 ipv6-vif = disabled # DNS 劫持 hijack-dns = *:53 # 跳过代理 skip-proxy = 192.168.0.0/24, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local, *.crashlytics.com # Always Real IP Hosts always-real-ip = , *.lan, *.direct, *.cmpassport.com, id6.me, open.e.189.cn, mdn.open.wo.cn, opencloud.wostore.cn, auth.wosms.cn, *.10099.com.cn, *.msftconnecttest.com, *.msftncsi.com, lancache.steamcontent.com, *.apple.com, *.icloud.com # 展示错误页面 show-error-page-for-reject = true # 排除简单主机名 exclude-simple-hostnames = true # 不进行协议嗅探 always-raw-tcp-hosts = 149.154.*, 91.108.* # 自定义 GeoIP 数据库 geoip-maxmind-url = https://github.com/Hackl0us/GeoIP2-CN/raw/release/Country.mmdb # All Hybrid 网络并发 all-hybrid = false # > 远程控制器 http-api-web-dashboard = false # Surge VIF # tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 # tun-included-routes = 192.168.1.12/32 [Proxy] [Proxy Group] # 策略组 Proxy = select, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/mini/surge.png All = select, no-alert=1, hidden=0, include-all-proxies=1, update-interval=60, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/ULB.png Mainland = select, DIRECT, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Star.png Gmedia = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/ForeignMedia.png Outside = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Global.png Microsoft = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Microsoft.png Google = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Google_Search.png AI = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Bot.png Social = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Twitter.png Telegram = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/mini/tgpic.png PayPal = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/PayPal.png Netflix = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Netflix.png Game = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Game.png Emby = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Emby.png Spotify = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Spotify.png Final = select, Proxy, US Manual, JP Manual, EU Manual, All, Mainland, no-alert=1, hidden=0, interval=60, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Final.png US Manual = select, US Auto, US Fallback, US Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/United_States.png JP Manual = select, JP Auto, JP Fallback, JP Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Japan.png EU Manual = select, EU Auto, EU Fallback, EU Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/European_Union.png # HK Manual = select, HK Auto, HK Fallback, HK Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Hong_Kong.png # SG Manual = select, SG Auto, SG Fallback, SG Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Singapore.png # TW Manual = select, TW Auto, TW Fallback, TW Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/China.png # KR Manual = select, KR Auto, KR Fallback, KR Balance, no-alert=1, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Korea.png US Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇺🇸|美|US|USA|States|America, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/United_States.png JP Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇯🇵|日|JP|Japan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Japan.png EU Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇬🇧|🇫🇷|🇩🇪|🇳🇱|🇨🇭|🇪🇺|英|德|法|荷|瑞|欧|UK|DE|FR|NL|CH|EU|Europe, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/European_Union.png # HK Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇭🇰|港|HK|Hong, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Hong_Kong.png # SG Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇸🇬|新加坡|狮|SG|Singapore, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Singapore.png # TW Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇹🇼|台|TW|Taiwan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/China.png # KR Auto = url-test, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇰🇷|韩|KR|Korea, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Korea.png US Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇺🇸|美|US|USA|States|America, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/United_States.png JP Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇯🇵|日|JP|Japan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Japan.png EU Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇬🇧|🇫🇷|🇩🇪|🇳🇱|🇨🇭|🇪🇺|英|德|法|荷|瑞|欧|UK|DE|FR|NL|CH|EU|Europe, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/European_Union.png # HK Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇭🇰|港|HK|Hong, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Hong_Kong.png # SG Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇸🇬|新加坡|狮|SG|Singapore, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Singapore.png # TW Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇹🇼|台|TW|Taiwan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/China.png # KR Fallback = fallback, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇰🇷|韩|KR|Korea, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Korea.png US Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇺🇸|美|US|USA|States|America, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/United_States.png JP Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇯🇵|日|JP|Japan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Japan.png EU Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇬🇧|🇫🇷|🇩🇪|🇳🇱|🇨🇭|🇪🇺|英|德|法|荷|瑞|欧|UK|DE|FR|NL|CH|EU|Europe, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/European_Union.png # HK Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇭🇰|港|HK|Hong, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Hong_Kong.png # SG Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇸🇬|新加坡|狮|SG|Singapore, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Singapore.png # TW Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇹🇼|台|TW|Taiwan, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/China.png # KR Balance = load-balance, update-interval=0, interval=60, url=http://latency-test.skk.moe/endpoint, policy-regex-filter=🇰🇷|韩|KR|Korea, no-alert=1, hidden=0, include-all-proxies=0, include-other-group=All, icon-url=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/qure/Korea.png [Rule] # Direct Fix RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Direct.list,Mainland # 强制禁用 QUIC 协议,提升 YouTube 等谷歌系服务的播放体验 AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP # Reject Ads RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Ads_SukkaW.list,REJECT #!MACOS-ONLY RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Reject.list,REJECT # AIGC RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/AI.list,AI # PayPal RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/PayPal.list,PayPal # Netflix RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Netflix.list,Netflix,extended-matching # Telegram RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Telegram.list,Telegram AND,((OR,((PROCESS-NAME,Telegram), (IN-PORT,6153))), (HOSTNAME-TYPE,IPv4)),REJECT-NO-DROP # Social Media RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Twitter.list,Social RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Instagram.list,Social RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/TikTok.list,Social # Game RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Steam.list,Game RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Epic.list,Game # Google RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/YouTube.list,Google RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Google.list,Google # Microsoft RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Github.list,Microsoft RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/OneDrive.list,Microsoft RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Microsoft.list,Microsoft # Streaming RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Emby.list,Emby RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Spotify.list,Spotify RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Bahamut.list,Gmedia RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Disney.list,Gmedia RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/PrimeVideo.list,Gmedia RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/HBO.list,Gmedia # Proxy RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/Proxy.list,Outside # Apple RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/AppleCN.list,Mainland RULE-SET,https://raw.githubusercontent.com/tickmao/Rules/master/Surge/Rules/AppleServers.list,Outside # Local Aera Network (局域网地址) RULE-SET,LAN,Mainland # China IP GEOIP,CN,Mainland # Final FINAL,Final,dns-failed [URL Rewrite] [Script] [MITM] # MITM over HTTP/2 skip-server-cert-verify = true h2 = true hostname = -testflight.apple.com, -buy.itunes.apple.com, -api.revenuecat.com ca-passphrase = ca-p12 =