direct_fixed
This escaper will access the target upstream from local machine directly.
The following interfaces are supported:
tcp connect
udp relay
udp connect
http(s) forward
ftp over http
The following egress path selection values is supported:
-
The index will be used as the index of the binding IP address
The following common keys are supported:
resolver, required
-
The user custom resolve strategy will be taken into account.
-
The user tcp connect params will be taken into account.
bind_ip
optional, type: ip addr str | seq
Set the bind ip address(es) for sockets.
For seq value, each of its element must be ip addr str. Only random select is supported. Use route type escapers if is doesn’t meet your needs.
default: not set
bind_foreign
optional, type: bool
Set to true to bind to the same foreign IP address as client. It can be used in Linux TPROXY case.
default: false
Added in version 1.13.0.
bind_foreign_port
optional, type: bool
Set to true if you also want to bind to the same foreign port when bind_foreign is also enabled.
Note
This may cause bind error EADDRINUSE the two connections has the same client address.
Added in version 1.13.0.
default: false
egress_network_filter
optional, type: egress network acl rule
Set the network filter for the (resolved) remote ip address.
default: all permitted except for loop-back and link-local addresses
tcp_keepalive
optional, type: tcp keepalive
Set tcp keepalive.
The tcp keepalive set in user config will be taken into account.
default: no keepalive set
resolve_redirection
optional, type: resolve redirection
Set the dns redirection rules at escaper level.
default: not set
enable_path_selection
optional, type: bool
Weather we should enable path selection.
Note
Path selection on server side should be open, or this option will have no effects.
default: false
use_proxy_protocol
optional, type: proxy protocol version
Set the version of PROXY protocol we use for outgoing tcp connections except for FTP data connections.
default: not set, which means PROXY protocol won’t be used
Added in version 1.11.3.