Skip to content

Direct outbound

Configuration of direct outbound Example:

tag: proxy
dns-strategy: prefer-ipv4 # or prefer-ipv6, ipv4-only, ipv6-only
bind-interface: "127.0.0.1:0" # optional, by IP address or interface name
fw-mark: 1234 # optional, Linux fwmark
tcp-keep-alive: false # optional, enable TCP keepalive using OS probe timings
Set tcp-keep-alive: true to enable kernel keepalive probes on direct upstream TCP connections. Probe delay, interval, and retry count use the operating system's settings.

Fields

tcp-keep-alive

  • Type: bool
  • Required: no
  • Default: (type default)

Enable TCP keepalive on upstream sockets using the OS probe timings. Defaults to false.

half-close-timeout

  • Type: u64
  • Required: no
  • Default: 60_000

Inactivity timeout after either TCP source reaches EOF, in milliseconds. Defaults to 60 seconds. Zero disables the timeout.

dns

  • Type: string (optional)
  • Required: no

DNS service used to resolve destination domains after routing.

tag

  • Type: string
  • Required: yes

Required label for this endpoint.

dns-strategy

Used when the request has no DNS strategy. When both are unset, prefer IPv4.

fw-mark

  • Type: u32 (optional)
  • Required: no

fw_mark on linux

bind-interface

binding interface of this outgoing packet.

If bind_interface is set, the outgoing packet will be sent from the specified interface. Recommend to use to cooporate with other tun based proxy like sing-box/mihomo

Example:

# by ip address
bind-interface: "127.0.0.1:0"
# by interface name
bind-interface: "eth0"