Shadowsocks-android: Shadowsocks 4.7.3 cannot connect

Created on 7 Apr 2019  路  18Comments  路  Source: shadowsocks/shadowsocks-android

When the app was updated from Google Play Store a few days ago, it stopped work. Testing of a connection writes "Internet Unavailable" after a while. All applications that are in bypass mode had access to the Internet. I tried to reinstall the app, but it didn't help. Version 4.6.5, which I installed from GitHub, works perfectly (I transferred all settings through a JSON file).

Here are some details:

  • Android version: 9
  • Device: Xiaomi Mi A1
  • Version: 4.7.3
  • Last version that did not exhibit the issue: 4.7.0

Configuration:

  • [x] IPv4 server address
  • [ ] IPv6 server address
  • [x] Client IPv4 availability
  • [ ] Client IPv6 availability
  • Encrypt method: AES-256-CFB
  • Route

    • [x] All

    • [ ] Bypass LAN

    • [ ] Bypass China

    • [ ] Bypass LAN & China

    • [ ] GFW List

    • [ ] China List

    • [ ] Custom rules

  • [ ] IPv6 route
  • [x] Apps VPN mode

    • [x] Bypass mode

  • Remote DNS: 8.8.8.8
  • [ ] DNS over UDP
  • Plugin configuration (if applicable):
  • [ ] Auto Connect
  • [ ] TCP Fast Open
duplicate third-party bug

Most helpful comment

A better way is identifying DNS packet in tun2socks.

Let me try it later.

All 18 comments

Can you visit 1.1.1.1 when connected?

4.6.5: everything works perfectly.
4.7.0: everything works perfectly.
4.7.1: 1.1.1.1 works, but others don't (google.com, for example).
4.7.3: 1.1.1.1 works, but others don't (google.com, for example).

Grab a logcat.

  1. Installed 4.7.3
  2. Imported my settings.
  3. Ran logcat.
  4. Pressed the connect button.
  5. Pressed the test panel.
  6. Got "Internet Unavailable".
  7. Stopped logcat

shadowsocks.txt

This version works!

Thanks!

So, it's the same problem found here: https://github.com/shadowsocks/shadowsocks-android/issues/2143#issuecomment-477233065

It looks possible that system will ignore the VPN interface's default DNS.

It's still not clear to me why we cannot reproduce it on same MIUI and EMUI system locally.

I've got Xiaomi Mi A1 Global Version (Android One)

@Mygod let's revert that commit for now. Otherwise, many users would be affected.

We can keep investing this issue, until the root cause is found.

Thanks! Let me know if you need to test the bugfix on my device.

Looks duplicate to #2143.

@madeye Can you reproduce this issue?

Nope, I can't.

I would still argue that this hack/workaround would break non-DNS traffic through port 53 (e.g. QUIC on UDP 53). I think their ROM is fundamentally broken for VPN.

A better way is identifying DNS packet in tun2socks.

Let me try it later.

Same issue found on Oneplus 3t

Bug found on Google Play official version.

Then I tried the 4.8.1 release also cannot connect (my own ss server)

I will try to find and paste the logs so you can follow up with this issue.

(Seems to be the problem with Android 9)

system version A3010_28_190527

1

2
Forgive me for being lazy.

If you need the complete log let me know.

This version is 4.5.7 (China Mobile 4g network) My SS works fine with China Telecom in the company LAN (H3C)

@madeye

I have updated some screenshots. If you need the complete log let me know.

Glad to help with 4.7.1 test.


But the bug is not always on. Sometimes it works sometimes does not.

Just now it worked.

Really weird with China mobile.


Reverted to 4.2.5 it works OK.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mahdiG picture mahdiG  路  4Comments

tamashii picture tamashii  路  5Comments

Rabbit1623 picture Rabbit1623  路  5Comments

theScrabi picture theScrabi  路  5Comments

libook picture libook  路  4Comments