mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #1327] Disabling udp in some protocols in xray #902
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#902
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sharif221 on GitHub (Dec 11, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1327
The problem starts from my ip
My server ip is clean when using tcp protocol means restrictions do not apply to any tcp connections that firewall cant figure out its identity, aka v2ray is that case.
But it is heavily restricted on udp, so firewall don't care why that ip send or receive udp connection always restrictions apply, in some hours 9 out of 10 udp connections drops from firewall right away.
I done a small trick to see not using udp make changes or not, the config is vmess tcp http and i blocked udp in my local firewall and tryed to connect, the result was unbelievable, i not changed any thing in client app and xray, just removed any udp connection in client side, the vpn turned from loading screen every 3 second in YouTube to working very well in 80% of use cases, i think its not the best way to remove udp in my connection(why using local firewall against our connection :/ ),
There might be a setting in xray that let us only use tcp even if there is disadvantages in using full tcp in vpn.
Is there anything like that in x-ui or xray routing that let us perform this action?
I'm not an expert and there might be a chance that the problem is something else but the only thing that im sure is using tcp for Instagram is better than using udp that get dropped by firewall and xray need to figure out sending that data with new connection.
Thanks.
@pulsarice commented on GitHub (Dec 11, 2023):
Hi
Thanks for sharing.
I don't recommend completely blocking udp. The problem is QUIC protocol. You'll have to only block udp443 and udp80. Take a look: https://github.com/MHSanaei/3x-ui/discussions/1317