udp_stream
Added in version 1.13.3.
This server forwards a local UDP listening port to one or more remote TCP upstreams.
The following common keys are supported:
-
The user group must use fact-based authentication. It is used only when
auth_by_client_ipis enabled.
listen
optional, type: udp listen
Listening configuration for this server.
The instance count setting will be ignored if listen_in_worker is correctly enabled.
default: not set
udp_conn_track
optional, type: udp conn track
Set the UDP connection track config.
default: set with default values, the max sessions count is 4096, which should be adjusted according the listen instance count
upstream
required, type: upstream str | seq
Remote address or addresses and port. The port is always required.
For seq value, each of its element must be weighted upstream addr.
alias: proxy_pass
upstream_pick_policy
optional, type: selective pick policy
Policy used to select the upstream address.
The key for ketama/rendezvous/jump hash is <client-ip><server-ip>.
default: random
auth_by_client_ip
optional, type: bool, conflict: auth_by_server_ip
Enables fact-based user authentication using the client IP address as the authentication fact.
If enabled, user_group must also be set.
default: false