I want to proxy UDP traffic with nginx. nginx doesn't complain about the configuration. The client connects halfway (it says it can reach the end server), but the connection gets stuck and eventually times out.
nginx version: nginx/1.18.0 (Ubuntu)
nginx.conf
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 2000;
# multi_accept on;
}
stream {
upstream 19132udp {
server access-ip:19132;
}
server {
listen 19132 udp;
proxy_pass 19132udp;
}
}
nginx error log
2023/03/28 07:23:13 [alert] 66862#66862: *103 recv() failed (90: Message too long) while proxying and reading from upstream, udp client: 126.xxx.xxx.xxx, server: 0.0.0.0:19132, upstream: "121.xxx.xxx.xxx:19132", bytes from/to client:1464/0, bytes from/to upstream:0/1464
I would like to resolve this issue immediately. i hope good answer