Welcome! Log In Create A New Profile

Advanced

DTLS Load Balancing

January 24, 2018 04:38AM
I've setup a simplisti UDP load balancing as follow :

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

server {
listen 5684 udp;
proxy_pass dtls_udp_upstreams;
proxy_responses 1;
}
}

I notice that the balancing is correctly done and the response is received
by the client. Unfortunately, the destination port on the response reaching
the client is not the initial source port, and as a consequence, the DTLS
frame is discarded and a new DTLS handshake is initiated.

When proxying UDP packets through Nginx, is there a way for Nginx to
preserve its initial source port for subsequent packets?

In my case using Transparent proxying is not possible because my hoster
doesn't allow IP spoofing.

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

DTLS Load Balancing

scoulibaly January 24, 2018 04:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready