Stream Routes
A stream route object is used to create a route when API7 Gateway functions as a stream proxy, operating on the transport layer for TCP and UDP connections. This is analogous to the concept of Routes in cases where API7 Gateway functions as an application-layer proxy.
The Remote address
field in the stream route filters on the client IP.
Only requests originating from the specified IP address are allowed to pass through this route to the upstream(such as MySQL server).
While both clients have used the correct credentials to connect to the upstream, only the client with IP address whitelisted in Remote address
is permitted to establish a connection.
In addition to the Remote address
field, there are other fields such as Server address
and Server port
that can be configured to filter incoming requests before rejecting or forwarding them to upstream.
For detailed instructions on how to configure API7 Gateway as a stream proxy, see Proxy Transport Layer (L4) Traffic.