leapcode / bitmask_android

LEAP client for android
GNU General Public License v3.0
103 stars 32 forks source link

Can't connect: #173

Closed netrin closed 7 years ago

netrin commented 9 years ago

Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA'

Error: command '223 interface fwmark uid add tun1 0 99999' failed with '400 223 Failed to add uid rule (Invalid argument)'

elijh commented 9 years ago

Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA'

This is normal and to be expected (using the IANA name does not always work so we have kept the the older name for now).

Error: command '223 interface fwmark uid add tun1 0 99999' failed with '400 223 Failed to add uid rule (Invalid argument)'

That is NOT normal.

netrin: what version of android are you using? (settings > about phone > android version)

parmegv: Perhaps this is related to this issue https://code.google.com/p/android/issues/detail?id=62410

parmegv commented 9 years ago

I sometimes experience this kind of problem, but couldn't reproduce it.

@netrin did you try to connect again after this error? Bitmask usualy works fine for me after that.

netrin commented 9 years ago

Hi, thanks for the replies. I'm taking the time to write all this because I love the Bitmask/LEAP project and wnat to see it succeed. I hope you find this information helpful for development.

ANDROID DEVICE: AT&T SAMSUNG-SM-G900A (MSM8974) running stock TouchWiz interface. No custom ROM, but have frozen a lot of bloatware using Titanium Backup.

Here is what happens when I try to use Bitmask:

  1. Install Bitmask from Google Play store
  2. Enter Riseup credentials --> "Authentication succeeded"...."Not running! Connection not secure!"....
  3. Toggle "Encrypted Internet" to ON.
  4. Popup appears: "Bitmask is attempting to create a VPN Connection etc etc" --> Tick the box for "I trust this application."
  5. Screen returns to "Not running! Connection not secure!" and "Encrypted Internet OFF."
  6. Attempt again to toggle OFF to ON again.
  7. Progress bar says: "initiating connection"......"authenticating"....."getting client configuration"......"adding routes"......"Not running! Connection not Secure!"
  8. Check notfication panel: "VPN is activated by Bitma.." [truncated] "Connected to Blocking until running. T..". [truncated]. The icon bar displays the normal Bitmask key icon.
  9. Back inside the application, Bitmask still displays, "Not running! Connection not secure!"
  10. Internet is no longer accessible and all external connection attempts now fail, e.g. Firefox.
  11. Click on Bitmask in Notification Panel. Shows a session connection to a server, but there is still no connection.
  12. Click Configure. Returns to same page showing "Encrypted Internet: OFF". Attempt to turn ON again, same errors as before.
  13. Saved log file.
  14. Clicked "Log Out" --> "Logging out from this session"....."Didn't log out".... -> repeat -> same inability to log out.
  15. So I am unable to log out or quit Bitmask without rebooting the phone completely. Unfortunately all of this makes Bitmask totally unusable, as not only does the program fail to work, but it also prevents all external connections from functioning after the program has been run, no matter how I attempt to quit the program.
    • Using the same credentials, I am usually able to run Bitmask on Linux desktop mostly without problems. Sometimes similar problems appear, but much less frequently than on the mobile client.
    • Pasted the detailed LOG FILE output at the following link (too big to post here):

https://www.zerobin.net/?80d3576576f699d5#oCmL4cz9TRxW6u8fbJC9EDeP8yCRQliaOtCMtDwItiY=

parmegv commented 9 years ago

Hi Netrin!

Thanks very much for this long writing. Have you installed Bitmask from the Play Store recently? Because such behaviour reminds me to the previous version, 0.8.1.

Which Android version are you using? <4.4?

parmegv commented 9 years ago

Ok, I'm reproducing it on the emulator. I'll fix this asap (hopefully today)

parmegv commented 9 years ago

OK, I've fixed this and some other bugs. Can you test 0.9.0RC1? It's at https://dl.bitmask.net/client/android/Bitmask-Android-0.9.0RC1.apk, and also in the Beta testing section of the Play Store.

netrin commented 9 years ago

Hi parmegv, I've tested the 0.9.0RC1 and as far as I can tell, I am encountering the same issues described previously. Status progresses like this: authenticating -> getting client configuration -> assigning IP address xxxxx -> not running! connection not secure! . Then I am unable to log out, the program cannot be terminated, and external connections through all programs are not possible until the phone is rebooted.

To clarify, I am running a rooted Android 4.4.2 (AT&T Samsung Galaxy S5) and before testing this RC was using the most current version from the Google Play Store.

Perhaps this problem is specific to my phone or configuration? I have been disabling unneeded applications to free up RAM and have experienced no problems running other apps, but could there be a package that Bitmask absolutely requires in order to run properly? Just thinking if I might have disabled a dependency somehow, but I don't know.

Abridged log file:

Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA' Protecting socket fd 4 Failed to open the tun interface Error: command '1715 interface fwmark uid add tun1 0 99999' failed with '400 1715 Failed to add uid rule (Invalid argument)' ERROR: Cannot open TUN Process exited with exit value 1

parmegv commented 9 years ago

Hi netrin!

Please, tell bitmask to switch providers and ley me know if that helps.

If it doesn't, uninstall and install again.

El 2 de enero de 2015 23:02:45 CET, netrin notifications@github.com escribió:

Hi parmegv, I've tested the 0.9.0RC1 and as far as I can tell, I am encountering the same issues described previously. Status progresses like this: authenticating -> getting client configuration -> assigning IP address xxxxx -> not running! connection not secure! . Then I am unable to log out, the program cannot be terminated, and external connections through all programs are not possible until the phone is rebooted.

To clarify, I am running a rooted Android 4.4.2 (AT&T Samsung Galaxy S5) and before testing this RC was using the most current version from the Google Play Store.

Perhaps this problem is specific to my phone or configuration? I have been disabling unneeded applications to free up RAM and have experienced no problems running other apps, but could there be a package that Bitmask absolutely requires in order to run properly? Just thinking if I might have disabled a dependency somehow, but I don't know.

Abridged log file:

Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA' Protecting socket fd 4 Failed to open the tun interface Error: command '1715 interface fwmark uid add tun1 0 99999' failed with '400 1715 Failed to add uid rule (Invalid argument)' ERROR: Cannot open TUN Process exited with exit value 1


Reply to this email directly or view it on GitHub: https://github.com/leapcode/bitmask_android/issues/173#issuecomment-68566773

Enviado desde mi teléfono con K-9 Mail.

ghost commented 9 years ago

Hello guys, I still have this problem. The tun device is not created. I've tried with the google play version, with the latest on the repository and finally also with the testin 112. Same problem.

Galaxy S4 original rom

netrin commented 9 years ago

Hi parmegv and other kind folks. Sorry for the delay. I did as you instructed and switched providers/reinstalled, but still, no success.

Recently I performed a factory reset for unrelated reasons, and installing and testing Bitmask was one of the first things I attempted. Unfortunately, I had the exact same problem with Bitmask after the factory reset!

I did uninstall many bloatware apps with Titanium Backup months ago, but I assume that the factory reset I just performed should have restored everything to stock--the phone looks like it did out-of-the-box as far as I can tell, anyway: AT&T Samsung Galaxy S5 G900A with stock applications and no root.

The problem could still lie with my phone, but after a factory reset, I assume all changes should have been undone. However I am not an Android dev and leave this to the experts. Hope you'll find this info helpful.

bitcoinland commented 9 years ago

Hi guys, I am experiencing the exact same problems @netrin describe on https://github.com/leapcode/bitmask_android/issues/173#issuecomment-68387116

My phone is a Samsung Galaxy Note 3 using stock firmware (4.4.2). Bitmask version 0.9.2RC2

I can attach the logs if they are helpful.

ghost commented 8 years ago

I experience a similar problem with two physical devices, using the application from the bitmask website.

  1. Open bitmask in Android
  2. Choose provider (demo.bitmask.net, riseup or calyx)
  3. Input user & password and login
  4. Press button to establish VPN connection
  5. Confirm Android warning

Following message appears: "No process running". After that, android can't use any internet connection until the phone is rebooted. Switch off and on wireless or data connection doesn't work. Trying to "disconnect" from VPN doesn't work either.

Log:

https://www.zerobin.net/?4215e42e7883df7c#vnyH9X24CNblmzI8TmzBNCtmXIltXA080I9qD1cdwA0=

cyBerta commented 7 years ago

The issue will be tracked here: https://0xacab.org/leap/bitmask_android/issues/8769.