Traffic Routing

Surge can forward requests to another proxy server or connect to the host directly, depending on customized rules.

Priority

Rules are matched from top to bottom in the order they appear in the profile. The first matched rule wins.

Composition

Each rule consists of 3 parts: rule type, a matcher (except for the FINAL rule), and a proxy policy:

           TYPE,         VALUE,         POLICY
Example:   DOMAIN-SUFFIX,apple.com,     DIRECT
           IP-CIDR,      192.168.0.0/16,ProxyA

Surge supports several types of rules. See the specific rule pages under this category for details. A policy can be a built-in policy, a proxy policy, or a policy group. Rules must end with a FINAL rule to define the default behavior.

Example:

[Rule]
DOMAIN-SUFFIX,company.com,ProxyA
DOMAIN-KEYWORD,google,DIRECT
GEOIP,US,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT
FINAL,ProxyB

DOMAIN, DOMAIN-SUFFIX, and DOMAIN-KEYWORD are domain-based rules. IP-CIDR and GEOIP are IP-based rules.

results matching ""

    No results matching ""