proxy

The proxy configurations in Network Filter.

proxy is the most common network filter in MOSN and is configured in the following format:

  1. {
  2. "downstream_protocol":"",
  3. "upstream_protocol":"",
  4. "router_config_name":"",
  5. "extend_config":{}
  6. }
  • downstream_protocol: The request protocol that the proxy expects to receive. When receiving data from a connection, MOSN uses this protocol to parse and forward packets. If the received packet protocol does not comply with the configuration, MOSN closes the connection.
  • upstream_protocol: The protocol used by the proxy to forward data. Usually, this field needs to be consistent with downstream_protocol. Protocol conversion is performed only in special scenarios.
  • router_config_name: The router configuration index of the proxy. Usually, this field is consistent with router_config_name configured in connection_manager of the listener.
  • extend_config: The extension configuration, used only in XProtocol of MOSN currently.

Last modified October 28, 2022: docs: Changes to the v1.2.0 configuration (#217) (d237414)