Advanced Surge Proxy Configuration
ๆบ่ฝๅๆตใๅนฟๅๆฆๆชใๆตๅชไฝ่งฃ้
Basic โข DNS โข Groups โข Rules โข Install
๐ Language / ่ฏญ่จๅๆข
๐จ๐ณ ็ฎไฝไธญๆ | ๐บ๐ธ English
| File | Link |
|---|---|
| Surge.conf | Download |
| Setting | Value | Description |
|---|---|---|
| HTTP Port | 6152 |
Wi-Fi sharing port |
| SOCKS5 Port | 6153 |
Wi-Fi sharing port |
| Controller | 6160 |
API control port |
| Dashboard | 6166 |
Web dashboard port |
| IPv6 | false |
Disabled by default |
| Type | Server | Provider |
|---|---|---|
| System | 223.5.5.5, 223.6.6.6, 119.29.29.29 |
China DNS |
| DoH | https://doh.pub/dns-query |
DNSPod |
| DoH | https://dns.alidns.com/dns-query |
Alibaba |
| Hijack | 8.8.8.8:53, 8.8.4.4:53 |
Google DNS |
| Group | Type | Description |
|---|---|---|
Mainland |
select |
China Direct |
NoAuto |
select |
Main entry point |
Automatic |
select |
Regional selection |
AllServer |
select |
All subscription nodes |
Proxy |
select |
Proxy policy |
| Group | Filter | Interval | Tolerance |
|---|---|---|---|
Hong Kong ๐ญ๐ฐ |
ๆธฏ|๐ญ๐ฐ|้ฆๆธฏ|HK|Hong |
300s | 50ms |
Taiwan ๐น๐ผ |
ๅฐ|๐น๐ผ|ๅฐๆนพ|TW|Tai |
300s | 50ms |
Japan ๐ฏ๐ต |
ๆฅ|๐ฏ๐ต|ๆฅๆฌ|JP|Japan |
300s | 50ms |
Singapore ๐ธ๐ฌ |
ๅก|๐ธ๐ฌ|ๆฐๅ ๅก|็ฎๅ|SG |
300s | 50ms |
United States ๐บ๐ธ |
็พ|๐บ๐ธ|็พๅฝ|US|States |
300s | 50ms |
United Kingdom ๐ฌ๐ง |
๐ฌ๐ง|่ฑๅฝ|่ฑ|UK |
300s | 50ms |
Korea ๐ฐ๐ท |
้ฉ|้ฉๅฝ|Korea|KR|๐ฐ๐ท |
300s | 50ms |
Other |
Exclude above | 300s | 50ms |
| Group | Default | Purpose |
|---|---|---|
AI |
Automatic | ChatGPT, Claude, Bing AI |
Apple |
Mainland โ HK โ US | Apple services |
Microsoft |
Mainland โ HK โ SG โ US | Microsoft services |
OneDrive |
Mainland โ HK โ SG โ US | Cloud storage |
Telegram |
Automatic โ SG โ US โ HK | Messaging |
X |
Automatic โ HK โ TW โ SG โ JP โ US | Twitter/X |
WeChat |
Mainland โ HK โ SG โ US | |
Netflix |
HK โ TW โ SG โ JP โ US | Netflix streaming |
Disney+ |
HK โ SG | Disney+ streaming |
YouTube |
Automatic โ HK โ TW โ SG โ JP โ US | YouTube streaming |
TikTok |
TW โ SG โ JP โ US | TikTok unlock |
Bilibili |
Mainland โ HK โ TW | Bilibili (HK/TW unlock) |
Speedtest |
Mainland โ Auto โ AllServer | Speed test |
1. ๐ง Unbreak Rules Fix broken connections โ DIRECT
2. ๐ซ Ad Blocking SKK Ruleset โ REJECT
3. ๐ Privacy Block trackers
4. ๐ฑ CN Apps WeChat, NetEase, Bilibili, Weibo
5. ๐ Apple Services App Store, Apple News, Apple TV
6. ๐ค AI Services OpenAI, Claude, Gemini, Bing
7. ๐ฌ Streaming Disney+, Netflix, TikTok, YouTube
8. ๐ Regional Unlock US, EU, JP, KR, HK, TW streams
9. ๐ฌ Social Media Twitter, Telegram, Facebook, Instagram
10. ๐ง Other Global OneDrive, Microsoft, GitHub, Speedtest
11. ๐จ๐ณ CN Rules SKK + ChinaMax ruleset
12. ๐ Global Rules CDN, Global ruleset
13. ๐ LAN Local network โ DIRECT
14. ๐ฏ Final Rule FINAL โ NoAuto
| Standard | Community |
|---|---|
| HTTP / HTTPS | Snell |
| SOCKS5 / SOCKS5-TLS | Shadowsocks |
| SSH | VMess |
| WireGuard | Trojan |
| TUIC | |
| Hysteria 2 | |
| AnyTLS |
| Original | Target | Type |
|---|---|---|
google.cn |
google.com |
302 |
maps.google.cn |
maps.google.com |
302 |
taobao.com |
HTTPS | 302 |
jd.com |
HTTPS | 302 |
mi.com |
HTTPS | 302 |
| Service | DNS Server | Description |
|---|---|---|
| Taobao/Tmall/Alipay | 223.5.5.5 |
Alibaba services |
| JD/QQ/WeChat | 119.28.28.28 |
Tencent services |
| Bilibili/NetEase | 119.29.29.29 |
Entertainment |
| Xiaomi | 119.29.29.29 |
Xiaomi services |
| Router Admin | System DNS | Local devices |
1. Download Surge.conf
2. Surge โ Settings โ Configuration
3. "Download from URL"
4. Paste URL โ Confirm
1. Download Surge.conf
2. Replace in iCloud Surge folder
3. Restart Surge
AllServer = select, ..., policy-path=https://your-subscription-url
Edit [Proxy] section:
# Shadowsocks
MySS = ss, 1.2.3.4, 8388, encrypt-method=aes-256-gcm, password=xxx
# VMess
MyVMess = vmess, 1.2.3.4, 443, username=uuid, ws=true, ws-path=/path
# Trojan
MyTrojan = trojan, example.com, 443, password=xxx1. Install Surge CA certificate
2. Trust in system settings
3. Settings โ MITM โ Enable
| Source | Description |
|---|---|
| blackmatrix7 | Cross-platform rules |
| Skk.moe | SKK ruleset |
| VirgilClyne | ASN rules |
| Semporia | TikTok unlock |
| zxfccmm4 | Unbreak rules |
| Item | Description |
|---|---|
| ๐ Subscription | Replace with your own subscription URL |
| ๐ Rule Update | Rules auto-update from online sources |
| โฑ๏ธ Speed Test | 300s interval, 3s timeout, 50ms tolerance |
| ๐ MITM Cert | Required for URL rewrite |
| ๐ Node Filter | Auto-filter nodes with "traffic/reset/expire" keywords |
| Service | Address |
|---|---|
| External Controller | surge@0.0.0.0:6160 |
| HTTP API | clashconnectrules@0.0.0.0:6166 |
| Web Dashboard | Enabled |
| Issue | Solution |
|---|---|
| Cannot connect | Check proxy config, verify server |
| Streaming blocked | Use streaming-capable nodes |
| MITM fails | Install/trust CA certificate |
| Rules not working | Check rule order, view logs |
Surge proxy groups support custom icons via the icon-url parameter. Follow this guide to personalize your icons.
In the [Proxy Group] section, each group can specify an icon-url:
Telegram = select, Automatic, Singapore, "United States", icon-url=https://example.com/icon.pngIcons should be PNG format, recommended size 120ร120 px.
These community icon packs cover popular apps, streaming services, flags, and more:
Qure Icon Pack
| Icon Pack | Link |
|---|---|
| Qure (ColorยทAll) | QureColor-All.json |
| Qure (LightยทAll) | QureLight-All.json |
| Qure (MiniยทAll) | Quremini.json |
Orz-3 Icon Pack
| Icon Pack | Link |
|---|---|
| Orz-3 (Color A) | miniColor.json |
| Orz-3 (Color B) | mini+.json |
| Orz-3 (Color C) | mini.json |
| Orz-3 (Color D) | face.json |
Other Icon Packs
| Icon Pack | Link |
|---|---|
| tugepaopao (Color) | Cute.json |
| shindgewongxj (Color) | iconset.json |
| Semporia (Color Hand-drawn) | Semporia.json |
| Colorful Static Flags | ColorfulStaticFlag.json |
| TheMagic Icons | TheRaw.json |
ginibond Icon Series
| Icon Pack | Link |
|---|---|
| Airport Icons | airport |
| QQ Classic | QQ_Classic |
| Cute Cartoon | Cute_Cartoon |
| Contact | contact |
| Character | character |
| RageBaby | RageBaby |
Step 1: Find an icon pack
Browse the icon pack's GitHub repository to find the PNG file you want.
Step 2: Get the icon direct link
The direct link format is:
https://raw.githubusercontent.com/<username>/<repo>/<branch>/<path>/<icon-name>.png
Tip: If you get links from Loon icon import URLs, the format is:
https://www.nsloon.com/openloon/import?iconset=https://raw.githubusercontent.com/...Remove the
https://www.nsloon.com/openloon/import?iconset=prefix and keep only thehttps://raw.githubusercontent.com/...part.
Step 3: Edit the config
Open Surge.conf, find the target proxy group, and replace or add the icon-url parameter:
# Before
YouTube = select, Automatic, ..., icon-url=https://old-icon.png
# After
YouTube = select, Automatic, ..., icon-url=https://raw.githubusercontent.com/xxx/YouTube.pngStep 4: Reload config
Reload the configuration file in Surge for the new icons to take effect.
MIT
Made with โค๏ธ for better internet experience