DIRECT
Defines a direct connection as a named node, letting you set a specific egress IP version, network interface, or routing mark for it — unlike using the built-in DIRECT keyword directly in rules/proxy groups, this is a customizable direct-connect node.
Example Config
proxies: - name: "direct" type: direct udp: true ip-version: ipv4 interface-name: eth0 routing-mark: 1234
Field Reference
There are no protocol-specific fields — it's all common fields: udp is already enabled by default, and ip-version/interface-name/routing-mark let you set a specific egress IP version and network interface for this direct connection.
This is typically used together with dialer-proxy or multi-interface routing setups, to give a specific type of traffic a dedicated direct-connect egress. The DIRECT you normally write inside rules/proxy-groups refers to the one from built-in proxy strategies and doesn't need to be defined separately.