shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.25k stars 11.57k forks source link

UDP fallback doesn't work with gfwlist or custom rules #3070

Open AaronChen0 opened 1 year ago

AaronChen0 commented 1 year ago

Please read contributing guidelines. Thanks.

Describe the bug When browsing instagram or youtube with bypass-lan-china route, I can see quic/udp traffic for http3 in tcpdump from my server. But there is only tcp traffic when choosing gfwlist or custom rules and udp fallback.

To Reproduce Steps to reproduce: (Testing with or without plugin is the same for this bug)

  1. Enable udp-fallback with gfwlist route or custom rules (can confirm the related domains are in the route rules). Screenshot_2023-05-15-19-50-07-070_com github shadowsocks Screenshot_2023-05-15-19-51-09-342_com github shadowsocks
  2. Using the following command to observe udp traffic in your udp fallback server.
    tcpdump port 31555 and udp
  3. Browsing youtube in a chrome browser. Can view youtube normally.
  4. See no udp traffic from step 2. Switching to bypass-lan-china route, I can observe udp traffic.

Expected behavior When using custom rules, I can view youtube via http3/quic/udp.

Screenshots See above. I can add more if requested.

Smartphone (please complete the following information):

Configuration Put an x inside the [ ] that applies.

Additional context Add any other context about the problem here.

AaronChen0 commented 2 months ago

Hi, @Mygod . Can you reproduce this issue? Do you have any clues? I can reproduce this issue with the lastest commit.

Mygod commented 2 months ago

Feel free to PR. :)