Gaming server set up in UDP QoS environments #4452
iopq
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was able to finally set this up and it required a few pieces:
https://github.com/XTLS/Xray-examples/blob/main/VLESS-XHTTP3-Nginx/
first you can make sure you actually set up nginx and xray correctly before continuing to the next step
on Ubuntu I had to install a newer nginx because it needs QUIC support like so:
you can use a socket like in the sample setup or just another port like 8443
so it goes client on 443 -> | nginx 8443 -> xray
https://github.com/wangyu-/udp2raw
now udp2raw listens on port 443
you can open up
tmux
and run it in theresudo ./udp2raw_amd64_hw_aes -s -l 0.0.0.0:443 -r 127.0.0.1:7443 -k "somepassword" --raw-mode faketcp --auth-mode hmac_sha1 -a --fix-gro
so it's client xray now listens on localhost:7443 in the local set up -> udp2raw 443 -> | udp2raw 7443 -> nginx 8443 -> xray
since it's QUIC it runs over UDP which can work with udp2raw which can mask traffic as TCP or ICMP even
https://github.com/wangyu-/UDPspeeder
./speederv2_amd64 -s -l 0.0.0.0:6443 -r 127.0.0.1:7443 -k "otherpassword" -f2:2,20:8 --mode 0 --timeout 4
then change the port of udp2raw to match
sudo ./udp2raw_amd64_hw_aes -s -l 0.0.0.0:443 -r 127.0.0.1:6443 -k "somepassword" --raw-mode faketcp --auth-mode hmac_sha1 -a --fix-gro
now you have xray 7443 -> udpspeeder 6443 -> udp2raw 443 -> | udp2raw 6443 -> udpspeeder 7443 -> nginx 8443 -> xray
https://serverfault.com/questions/1169137/how-do-i-send-all-tcp-and-udp-traffic-over-tproxy-without-making-a-loop
I suggest the GID setup and running udp2raw/udpspeeder as the proxy user so the packets get ignored by the tproxy rules
That way you can play even wine games that require UDP connections without appearing like you're doing anything but connecting to a website over TCP
Problems
Beta Was this translation helpful? Give feedback.
All reactions