Replies: 4 comments 4 replies
-
|
The design is as follows: The packets to the server will look like syn/ack and so forth to establish it, and it will appear like a TCP connection over SSL - exactly like connecting to a normal website. But actually it's transmitting UDP packets out of order as the payload. All of the middleboxes will see it as TCP connections to some website while you're playing some p2p game over UDP or having some kind of a call |
Beta Was this translation helpful? Give feedback.
-
|
So I show that I need to do xray 7443 -> udpspeeder 6443 -> udp2raw 443 -> | udp2raw 6443 -> udpspeeder 7443 -> nginx 8443 -> xray This set-up works, but it needs to use TLS instead of Reality because QUIC is not supported (can be detected by connection migration): so save for the feature being implemented in xray, it can't be done in an ideal way which would be something like tpoxy -> xray REALITY FakeTCP with FEC | xray server which is to say for optimal UDP performance xray would transmit UDP packets out of order with no retransmission, but use FEC settings to actually increase the bandwidth to lower packet loss but to an outside observer it would just look like encrypted TCP traffic on port 443 coming from a legitimate website (because REALITY will still be working) |
Beta Was this translation helpful? Give feedback.
-
|
So why can't you do udp2raw -> xray | xray <- udp2raw This is because udp2raw uses raw sockets, so everything will be messed up similarly, phantun -> xray | xray <- phantun doesn't work because it won't get syn, ack through xray since the phantun TCP is actually fake and not real Because of this, there's no way to get xray REALITY to work around UDP censorship in China when the connection is congested (at peak times it is) - since the link will be too shit and the TCP retransmission mechanism will make the latency impossible to use for gaming |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/wangyu-/tinyfecVPN/issues/134 trying to use XUDP for UDP packet encapsulation makes xray retransmit the packets as far as I can tell, because tinyfecvpn -> xray decreases the packet loss, but the delay increases dramatically in bad network conditions if there were a faketcp mode, you could just mark the packets as TCP and directly emit them without messing it up I tried with xhttp as well, no matter the mode same issue. XUDP is not fit for gaming in bad network environments |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hysteria 1 had FakeTCP which prevented UDP blocks. No current software has support for this, so my UDP connections get dropped after after an hour. Could this be implemented in xray?
Beta Was this translation helpful? Give feedback.
All reactions