M
M
mxr2021-04-04 13:14:13
Nginx
mxr, 2021-04-04 13:14:13

Reverse proxy for game server (UDP)?

We need a reverse proxy between the client and the game server, displaying the real IP address on the game server.
I'm currently using Nginx with the stream directive, but the client IP is the same as the nginx IP. The game server does not support Proxy_protocol.

Is there any way to bypass Nginx? The task of a proxy server is only to proxy traffic in both directions. Both servers have a dedicated IP address.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ky0, 2021-04-04
@ky0

Nginx is not needed in your case, set up packet forwarding + masquerading via iptables, etc.

A
Alexey Dmitriev, 2021-04-04
@SignFinder

Try Haproxy

V
ValdikSS, 2021-04-04
@ValdikSS

Perhaps the easiest option is VPN between servers.
There is an alternative option - mmproxy from cloudflare.
https://blog.cloudflare.com/mmproxy-creative-way-o...
https://github.com/cloudflare/mmproxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question