T
T
tex6202020-12-10 02:46:05
Nginx
tex620, 2020-12-10 02:46:05

Why do I keep a static redirect in nginx?

I'm trying to do UDP proxying on Ubuntu+Nginx with the following configs:

stream {
    server {
                listen 10020;
                proxy_pass somedomain:10020;
                proxy_bind $remote_addr;
    }
}


But instead of proxying, I get redirected packages.
Udp/Tcp packets are sent with the Redirected mark, and when proxying game connections (players to servers), connections do not go through.
Moreover, after disabling nginx (service nginx stop), the packages continue to be redirected.
Why is this happening, and how to get true proxying instead of a redirect.

There are many clients, the target address for proxying is one.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-12-10
@ky0

Why are you proxying UDP with nginx? There are many more suitable tools for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question