mirror of
https://github.com/bytedance/g3.git
synced 2026-04-28 03:30:31 +00:00
97 lines
2.5 KiB
ReStructuredText
97 lines
2.5 KiB
ReStructuredText
.. _configuration_escaper_direct_fixed:
|
|
|
|
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 common keys are supported:
|
|
|
|
* :ref:`shared_logger <conf_escaper_common_shared_logger>`
|
|
* :ref:`resolver <conf_escaper_common_resolver>`, **required**
|
|
* :ref:`resolve_strategy <conf_escaper_common_resolve_strategy>`
|
|
|
|
The user custom resolve strategy will be taken into account.
|
|
|
|
* :ref:`tcp_sock_speed_limit <conf_escaper_common_tcp_sock_speed_limit>`
|
|
* :ref:`udp_sock_speed_limit <conf_escaper_common_udp_sock_speed_limit>`
|
|
* :ref:`no_ipv4 <conf_escaper_common_no_ipv4>`
|
|
* :ref:`no_ipv6 <conf_escaper_common_no_ipv6>`
|
|
* :ref:`tcp_connect <conf_escaper_common_tcp_connect>`
|
|
|
|
The user tcp connect params will be taken into account.
|
|
|
|
* :ref:`tcp_misc_opts <conf_escaper_common_tcp_misc_opts>`
|
|
* :ref:`udp_misc_opts <conf_escaper_common_udp_misc_opts>`
|
|
* :ref:`extra_metrics_tags <conf_escaper_common_extra_metrics_tags>`
|
|
|
|
bind_ip
|
|
-------
|
|
|
|
**optional**, **type**: :ref:`ip addr str <conf_value_ip_addr_str>` | seq
|
|
|
|
Set the bind ip address(es) for sockets.
|
|
|
|
For *seq* value, each of its element must be :ref:`ip addr str <conf_value_ip_addr_str>`.
|
|
Only random select is supported. Use *route* type escapers if is doesn't meet your needs.
|
|
|
|
**default**: not set
|
|
|
|
egress_network_filter
|
|
---------------------
|
|
|
|
**optional**, **type**: :ref:`egress network acl rule <conf_value_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
|
|
|
|
happy_eyeballs
|
|
--------------
|
|
|
|
**optional**, **type**: :ref:`happy eyeballs <conf_value_happy_eyeballs>`
|
|
|
|
Set the HappyEyeballs config.
|
|
|
|
**default**: default HappyEyeballs config
|
|
|
|
.. versionadded:: 1.5.3
|
|
|
|
tcp_keepalive
|
|
-------------
|
|
|
|
**optional**, **type**: :ref:`tcp keepalive <conf_value_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**: :ref:`resolve redirection <conf_value_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
|