Common Policy Parameters

Egress Parameters

All of these parameters are available for both built-in and proxy policies.

interface (Default: automatically)

Force to use a specified outgoing network interface.

ProxyHTTP = http,, 443, username, password, interface = en2

Direct policy alias supports the "interface" parameter like a proxy policy.

Crop-VPN = direct, interface = utun0
WiFi = direct, interface = en2, allow-other-interface=true

Please ensure the interface has a valid route table for the destination address.


When the option is true, if the desired interface is unavailable, Surge is allowed to use the default interface to bind the connection. Otherwise, the connection fails directly.

ProxyHTTP = http,, 443, username, password, interface = en2, allow-other-interface=true


Choose the behavior between IPv4 and IPv6 protocols.

  • dual (Default, use the fastest link)
  • v4-only
  • v6-only
  • prefer-v4
  • prefer-v6

hybrid (Boolean, iOS Only, Default: off)

Setup the connection with cellular data and Wi-Fi simultaneously, then use the faster link.

tfo (Boolean, Default: off)

Enable TCP Fast Open.

tos (Decimal or Hexadecimal, Default: 0)

Customize the IP TOS value.



Override the global testing URL. The URL is used for availability and latency testing.

test-timeout (In seconds)

Override the global testing timeout.

results matching ""

    No results matching ""