bitwarden / mobile

Retired Bitwarden mobile app for iOS and Android (MAUI/Xamarin).
https://bitwarden.com
GNU General Public License v3.0
156 stars 25 forks source link

Cannot login to vault on Android app while using Wireguard VPN hosted on AWS #1678

Open LqkNuKzqHkKrCZn3vkSOFtiBAgKYTIXJRWeNmsC opened 2 years ago

LqkNuKzqHkKrCZn3vkSOFtiBAgKYTIXJRWeNmsC commented 2 years ago

Steps To Reproduce

  1. Launch Android app
  2. Click on Log in
  3. Fill in username and password
  4. Click on Log In

Expected Result

I should be logged in and able to access vault

Actual Result

"An error has occured"

Screenshots or Videos

No response

Additional Context

I am running a unbound + Pi-hole + pi-vpn setup through Wireguard on AWS, with a static IP. Yesterday, I have suddently encountered the issue where I cannot login into the app at all. I checked pi-hole and nothing was being blocked there relevant to bitwarden. Calls to api.bitwarden.com are all passing through fine.

On the same VPN, I can login through vault.bitwarden.com fine. I can login to the app without connecting to the AWS VPN, using my home network, which has mostly the same setup as the AWS server (unbound + pi-hole), but without the wireguard process. I tried to debug the pi-vpn instance, but couldn't find any issues there as the network requests didn't seem to reach at all.

When I encountered the issue yesterday, I changed the static IP associated with the VPN instance on AWS, and am still facing the same issue, so it doesn't seem that it's a blacklisted IP problem. The issue is also persistent on another phone (Samsung Galaxy S21+) that I have the same VPN on too, but using a completely different Bitwarden account.

This has started happening since yesterday only and has been previously working fine.

Operating System

Android

Operating System Version

11

Device

Sony Xperia 5 II

Build Version

2.14.2

Beta

GfB4RlEpADtnKwl9aIM0OZPNbVhslYgnUOpCifc commented 2 years ago

I failed to see how this is the developers bug. You have put extra vpn auth on ur connection. I have a feeling this will not be a bug.

LqkNuKzqHkKrCZn3vkSOFtiBAgKYTIXJRWeNmsC commented 2 years ago

I understand that I have put a VPN on my side, and that it is likely an issue on my end. I am simply requesting the developers' assistance in diagnosing the issue.

As I mentioned in the initial comment, the issue has suddenly started happening. I don't have the issue when I visit the Web vault.

The same DNS setup, with unbound and pi-hole on my home network but without going through AWS network, works perfectly fine. Perhaps the devs have blocked certain Hosts from accessing the app, perhaps there's some automated filter rules applied via whatever firewall is in place. I would like to find out what it is that is blocking the access. I have made no changes to the setup, I checked for any automated updates as well and there weren't any. A setup that has been working for 2 years just suddenly starts to fail.

5qeKAhhOQ0U7jpcox0zLkpKp0A6Plb546J04wmX commented 2 years ago

I have the same issue on the default bitwarden servers and IPVanish's Montreal servers as my VPN, so I doubt it's a misconfiguration on your side

iv6pUvsU3psMWtgephcCDb5r7sjj45HHiypqrVJ commented 2 years ago

Same issue. Cannot login thru VPN.

dioslocky commented 4 months ago

No solution then? I imagine the problem, at least whe I tried it is the certificate that allows you to enter the vault through https and how the mobile app does not ask you if you still want to enter. Or did you install it with the cert from letsencrypt?