Welcome! Log In Create A New Profile

Advanced

UDP Load balancing

Sékine Coulibaly
January 22, 2018 09:04AM
Hi,

I'm evaluating Nginx Plus for a UDP Load Balancer but can't make it work.
The packets are spoofed correctly on the LB side (as seen with tcpdump,
where I can see packets created, the source IP being the one of the client,
the destination the one of the selected upstream). However, on the upstream
side, I receive nothing.

Could it be the spoofed packets are filtered out somewhere ?

My configuration is as below :

user root;

worker_processes auto;
worker_rlimit_nofile 65535;

error_log /var/log/nginx/error.log debug;
pid /var/run/nginx.pid;


events {
worker_connections 20000;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request"
'
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
}

stream {
upstream dtls_udp_upstreams {
hash $remote_addr;
server preprods.mycorp.com:5684;
}

server {
listen 5684 udp;
proxy_bind $remote_addr:$remote_port transparent;
proxy_pass dtls_udp_upstreams;
proxy_responses 0;
}
}

Thank you !
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

UDP Load balancing

Sékine Coulibaly January 22, 2018 09:04AM

Re: UDP Load balancing

unclepieman January 22, 2018 01:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready