Home > other >  For cluster based on udp protocol using Nginx server backend how to obtain the client's real IP
For cluster based on udp protocol using Nginx server backend how to obtain the client's real IP

Time:09-23


The stream {
Upstream stunudp {
Server 192.168.0.110:3478;
Server 192.168.0.54:3478;
Server 192.168.0.51:3478;
}

Server {
3478 udp listen;
Proxy_responses 0;
Proxy_connect_timeout 1 s;
Proxy_buffer_size 4096 k;
Proxy_bind $remote_addr: $remote_port transparent;
Proxy_pass stunudp;
}
}

I said this configuration according to the Internet but added proxy_bind $remote_addr: $remote_port transparent; Configuration, a message can't forward the backend server, expert help answer genuflect is begged
  • Related