walterl / proton-privoxy

Privoxy over ProtonVPN in Docker
MIT License
112 stars 29 forks source link

Unable to authenticate when 2FA active #44

Closed OriCat101 closed 8 months ago

OriCat101 commented 10 months ago

Hey, so I have been trying to get this running for quite some time now. I have narrowed the problem down to 2FA and possibly the Mailbox password.

Here are some of the logs, probably useless tho.

2024-01-09 02:21:37,831 — protonvpn-cli — DEBUG — disconnect:347 — No connection found
2024-01-09 02:21:37,831 — protonvpn-cli — DEBUG — get_ip_info:145 — Getting IP Information
2024-01-09 02:21:37,832 — protonvpn-cli — DEBUG — call_api:38 — Initiating API Call: https://api.protonvpn.ch/vpn/location
2024-01-09 02:21:37,947 — protonvpn-cli — DEBUG — call_api:67 — Successful json response
2024-01-09 02:21:37,950 — protonvpn-cli — DEBUG — openvpn_connect:476 — OpenVPN process started
2024-01-09 02:21:44,463 — protonvpn-cli — DEBUG — openvpn_connect:519 — Authentication failure
Connecting to CH#78 via UDP...
[!] Authentication failed. 
[!] Please make sure that your Username and Password is correct.
Device "proton0" does not exist.
Failed to bring up VPN :(
victorgrund commented 10 months ago

Yeah, trying this image for the first time. Same issue. I know the OpenVPN credential I'm using work elsewhere.

OriCat101 commented 10 months ago

OpenVPN credential? You're suposed to use your Proton Credentials

victorgrund commented 10 months ago

Au contraire, my friend. You are supposed to be using the credentials under "OpenVPN / IKEv2 username" in your Proton VPN account details.

Anyway, I sorted this. I had the wrong PVPN_TIER configured. It wasn't obvious which one to use (I do have a paid account, but it wasn't leaping out at me which I should use). A little trial and error fixed it.

walterl commented 8 months ago

Interesting, @victorgrund. Thanks for that bit of lore. IIRC I also had to play around to find the right value. Since I have a "normal" paid account, and a value of 2 worked for me, I assumed that it would be a safe default.

I'm closing this since there's a known fix, but please re-open if using a different PVPN_TIER value didn't work for you, @OriCat101.