Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MozillaVPN - missing field login_url #210

Closed
edent opened this issue Mar 14, 2023 · 6 comments · Fixed by #225
Closed

MozillaVPN - missing field login_url #210

edent opened this issue Mar 14, 2023 · 6 comments · Fixed by #225
Labels
regression Regression bug

Comments

@edent
Copy link

edent commented Mar 14, 2023

Running vopono sync and selecting MozillaVPN gives this error:

INFO  vopono::sync > Starting Wireguard configuration...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { 
   kind: Decode, source: Error("missing field `login_url`", line: 1, column: 67)
 }', vopono_core/src/config/providers/mozilla/mod.rs:76:14

I'm running vopono 0.10.5 on Ubuntu 20.04. I have Wireguard and other relevant dependencies installed. It's a headless Linux server, if that makes a difference?

@jamesmcm
Copy link
Owner

It seems they changed the authentication flow - NilsIrl/MozWire@43da20d

And deprecated the old one at some point.

I'll try to take a look some time but I don't have an account at the moment.

@edent
Copy link
Author

edent commented Mar 14, 2023

Understood. If I download the config using MozWire, can I still use Vopono for namespacing?

@jamesmcm
Copy link
Owner

Yeah, if you can get the Wireguard wg-quick config file it should work.

@edent
Copy link
Author

edent commented Mar 14, 2023

Cheers. Where should I put them so Vopono can see them? Sorry if that's a simple question.

@jamesmcm
Copy link
Owner

Usually in ~/.config/vopono/mozilla/wireguard/ e.g. usa-nyc1.conf

They should be in TOML format like:

[Interface]
PrivateKey = WE9URkRyZkhXbHU5TXhoRm1MRVZJ
Address = 2.2.2.2/32
DNS = 8.8.8.8

[Peer]
PublicKey = YmFzZTY0c3RyaW5nYQ==
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = 1.1.1.1:51820

But you can also pass the path to the file directly as a custom config too, both should work.

@edent
Copy link
Author

edent commented Mar 14, 2023

Worked perfectly! Thanks :-)

vopono exec --custom ~/.config/vopono/mozilla/wireguard/fi-hel-wg-103.conf "curl https://ifconfig.co/json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants