Skip to content

Surge

1. What is Surge?

Surge is a powerful network toolbox for macOS & iOS. At its core, it works as a local proxy that lets you:

  • πŸš€ Bypass network restrictions (via proxy nodes)
  • 🧠 Control traffic routing with rules
  • πŸ§ͺ Debug network requests (very strong feature)
  • πŸ”’ Enhance privacy and security
  • πŸ“± Manage proxies on Apple devices elegantly

In simple terms: Surge decides β€œwhich app / website goes through which proxy (or not)”

2. Surge vs Other Tools (Quick Comparison)

Tool Strength Weakness
Clash Free, popular Limited rule flexibility
Shadowrocket Easy on iOS Less powerful
Surge πŸ”₯ Most powerful Paid, learning curve

If you want fine-grained control and professional-grade rules, Surge is worth it.

3. Supported Platforms

  • βœ… macOS (recommended for beginners)
  • βœ… iOS / iPadOS
  • ❌ Windows / Linux (not supported)

4. Core Concepts (Must Understand)

Don’t skip this section πŸ‘‡ Surge becomes easy once these are clear.

4.1 Proxy

A proxy is a server that forwards your traffic.

Examples:

  • Shadowsocks
  • Vmess
  • Trojan
  • HTTP / HTTPS

In Surge, proxies are called Proxy or Proxy Group.

4.2 Policy (Proxy Group)

A Policy decides which proxy to use.

Common types:

  • select β†’ manually choose
  • url-test β†’ auto choose fastest
  • fallback β†’ backup system

Example:

ProxyGroup = select, πŸ‡―πŸ‡΅ JP, πŸ‡ΊπŸ‡Έ US, DIRECT

4.3 Rule

Rules decide:

Which traffic uses which policy

Examples:

  • Google β†’ Proxy
  • Local websites β†’ Direct
  • Ads β†’ Block

Rule logic:

IF (condition) β†’ THEN (policy)

4.4 DIRECT / REJECT

  • DIRECT β†’ no proxy, go straight
  • REJECT β†’ block traffic

5. How Surge Works (Big Picture)

App β†’ Surge β†’ Rule β†’ Policy β†’ Proxy β†’ Internet

Surge always follows this order.

6. Installing Surge (macOS)

  1. Download from official site
  2. Install & open Surge
  3. Allow:
    • Network extension
    • VPN permission
  4. Status bar icon appears β†’ Surge is running

7. Configuration File (.conf)

Surge uses one main config file.

Structure:

[General]
[Proxy]
[Proxy Group]
[Rule]

You usually subscribe instead of writing from scratch.

8. Using a Subscription (Most Common)

8.1 Import Subscription

  1. Open Surge
  2. Profiles β†’ Download Profile from URL
  3. Paste your provider’s subscription link
  4. Update profile

That’s it βœ…

8.2 Profile Update

  • Surge can auto-update
  • You can also manually refresh

9. Understanding Each Section (With Examples)

9.1 [General]

Basic behavior settings:

[General]
loglevel = notify
dns-server = system

Beginners usually don’t touch this.

9.2 [Proxy]

Defines actual nodes.

Example:

[Proxy]
JP = ss, jp.example.com, 8388, encrypt-method=aes-256-gcm, password=123456

If you use subscriptions β†’ auto generated.

9.3 [Proxy Group]

This is very important.

Example:

[Proxy Group]
Proxy = select, JP, US, DIRECT
Auto = url-test, JP, US, url=http://www.gstatic.com/generate_204

You usually use:

  • One manual group
  • One auto group

9.4 [Rule]

Rules are matched top β†’ bottom.

Example:

[Rule]
DOMAIN-SUFFIX,google.com,Proxy
DOMAIN-SUFFIX,apple.com,DIRECT
GEOIP,CN,DIRECT
FINAL,Proxy

Meaning:

  1. Google β†’ Proxy
  2. Apple β†’ Direct
  3. China IP β†’ Direct
  4. Everything else β†’ Proxy

10. Rule Matching Priority ⚠️

Very important:

FIRST match wins

So:

  • Specific rules β†’ top
  • General rules β†’ bottom
  • FINAL β†’ always last

Simple & Safe Strategy

  • Domestic websites β†’ DIRECT
  • Foreign websites β†’ Proxy
  • Auto node selection

This gives:

  • Good speed
  • Low maintenance

12. Surge Dashboard (macOS)

Key panels:

  • Overview β†’ proxy status
  • Traffic β†’ real-time connections
  • Requests β†’ HTTP debugging
  • Rules β†’ see matched rules

Surge is famous for its Request Inspector

13. Debugging with Surge (Bonus)

You can:

  • View HTTPS requests
  • Modify headers
  • Mock responses
  • Test APIs

This is why many developers love Surge.

14. Common Beginner Mistakes

❌ Putting FINAL too early

❌ Mixing Clash rules directly

❌ Forgetting to enable Surge

❌ No DIRECT rules β†’ slow local access

  1. Use subscription (don’t write config)
  2. Learn:
    • Proxy Group
    • Rule logic
  3. Modify rules
  4. Learn Rewrite & Script (advanced)

16. When Should You Use Surge?

Use Surge if you want:

  • βœ… Precise routing control
  • βœ… Strong debugging
  • βœ… macOS / iOS ecosystem
  • ❌ Not free

17. Summary

  • Surge = professional proxy controller
  • Rules decide where traffic goes
  • Policy decides which node to use
  • Beginners should start with subscriptions
  • Learn rules slowly β†’ Surge becomes addictive πŸ˜„