<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## TCP代理 TCP代理[配置概述](../../../Configurationreference/Networkfilters/TCPproxy.md)。 - [filter.network.TcpProxy](#filternetworktcpproxy) - [filter.network.TcpProxy.DeprecatedV1](#filternetworktcpproxydeprecatedv1) - [filter.network.TcpProxy.DeprecatedV1.TCPRoute](#filternetworktcpproxydeprecatedv1tcproute) ### filter.network.TcpProxy [filter.network.TcpProxy proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/filter/network/tcp_proxy.proto#L16) ``` { "stat_prefix": "...", "cluster": "...", "access_log": [], "deprecated_v1": "{...}", "max_connect_attempts": "{...}" } ``` - **stat_prefix**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar), REQUIRED) 發布統計信息時使用的前綴。 - **cluster**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar)) 要連接到的上游群集。 注意:一旦在監聽器中實現了完整的過濾器鏈匹配,此字段將成為配置目標集群的唯一方法。所有其他匹配將通過過[濾器鏈匹配](../v2APIreference/ListenersandLDS.md#filterchainmatch)規則完成。當不需要其他匹配規則時,此配置非常簡單,該字段仍可用于選擇群集。否則,需要配置[deprecated_v1](#deprecated_v1)才能在此期間使用更復雜的路由。 - **access_log**<br /> ([filter.accesslog.AccessLog](../../../v2APIreference/Filters/Commonaccesslogtypes.md#filteraccesslogaccessLog)) 由此TCP代理發出的訪問日志的配置。 - **deprecated_v1**<br /> ([filter.network.TcpProxy.DeprecatedV1](#filternetworktcpproxydeprecatedv1)) 使用不推薦使用v1格式的TCP代理過濾器配置。這是復雜路由所必需的,直到實現了監聽器中的過濾器鏈匹配為止。 - **max_connect_attempts**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 在放棄建連之前將嘗試的最大失敗連接數。如果沒有指定參數,則將嘗試1次連接。 ### filter.network.TcpProxy.DeprecatedV1 [filter.network.TcpProxy.DeprecatedV1 proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/filter/network/tcp_proxy.proto#L52) 使用v1格式的TCP代理過濾器配置,直到Envoy能夠在監聽器級別匹配源/目的地(稱為過濾器鏈匹配)。 ``` { "routes": [] } ``` - **routes**<br /> ([filter.network.TcpProxy.DeprecatedV1.TCPRoute](#filternetworktcpproxydeprecatedv1tcproute), REQUIRED) 過濾器的路由表。所有的過濾器實例都必須有一個路由表,即使它是空的。 ### filter.network.TcpProxy.DeprecatedV1.TCPRoute [filter.network.TcpProxy.DeprecatedV1.TCPRoute proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/filter/network/tcp_proxy.proto#L60) TCP代理的路由是由一組可選的標準L4和一個集群的名稱組成。如果下游連接符合所有指定的條件,則路由中的集群將用于相應的上游連接。按照指定的順序嘗試路由,直到找到匹配項。如果找不到匹配,則連接關閉。并沒有規定路由始終有效的并且總是產生一個匹配。 ``` { "cluster": "...", "destination_ip_list": [], "destination_ports": "...", "source_ip_list": [], "source_ports": "..." } ``` - **cluster**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar), REQUIRED) 下游網絡連接符合匹配條件時需要連接的群集。 - **destination_ip_list**<br /> ([CidrRange](../v2APIreference/Networkaddresses.md#cidrrange)) 可選的IP地址子網列表,格式為“ip_address/xx”。如果下游連接的目標IP地址,至少被包含在一個指定的子網中,則符合匹配條件。如果未指定參數或列表為空,則將忽略目標IP地址。如果連接已被重定向,則下游連接的目標IP地址可能與代理正在監聽的地址不同。 - **destination_ports**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar)) 可選的字符串,包含通過逗號分隔的端口號列表,或者端口范圍。如果下游連接的目標端口,至少一個被包含在指定范圍內,則符合匹配條件。如果未指定參數,則將忽略目標端口。如果連接已被重定向,下游連接的目標端口地址可能與代理正在監聽的端口不同。 - **source_ip_list**<br /> ([CidrRange](../v2APIreference/Networkaddresses.md#cidrrange)) 可選的IP地址子網列表,格式為“ip_address/xx”。如果下游連接的源IP地址,至少一個被包含在指定的子網中,則符合匹配條件。如果未指定參數或列表為空,則將忽略源IP地址。 - **source_ports**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar)) 可選字符串,包含以逗號分隔的端口號列表,或者端口范圍。如果下游連接的源端口,至少一個被包含在指定范圍內,則滿足匹配條件。如果未指定參數,則源端口將被忽略。 ## 返回 - [上一級](../Networkfilters.md) - [首頁目錄](../../../README.md)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看