Nginx – Reverse proxy for mixed tcp, udp, and http services

haproxynginxreverse-proxytcpudp

I'm building an architecture that will be hosting various services which individually maybe listening on a variable number of ports that could be mixed protocols.

I want to map these services to unique subdomains and reverse proxy inbound requests to the external ports to corresponding internal ports.

Currently I'm using Nginx with a tcp module installed. This gives me http, and tcp support. However I just found that Nginx doesn't support UDP. It seems like maybe with a custom module I could support UDP but thats a separate issue. I'm also having issues with mapping multiple TCP services to subdomains using the Nginx module.

I'm hoping there is another proxy solution out there that might be better suited for this. Or a combination of tools.

Edit: The only thing I've found that might fit this role is:
http://freecode.com/projects/proxymini
http://aluigi.altervista.org/mytoolz.htm#proxymini

but I can't tell if its unix friendly or windows only and might not be a reverse proxy

Best Answer

The solution here is not a reverse proxy but DNS