ViRb3 / wgcf

🚤 Cross-platform, unofficial CLI for Cloudflare Warp
MIT License
6.25k stars 693 forks source link

Wireguard config for Android and iOS #11

Closed arunsathiya closed 4 years ago

arunsathiya commented 4 years ago

Are there plans to make wgcf available for use in Android and iOS using the Wireguard app? I understand that there is a Warp app offered by Cloudflare, but it doesn't have an option to set custom DNS servers.

It'd be nice to generate a config file using wgcf and use it on Wireguard app for Android/iOS.

ViRb3 commented 4 years ago

There's nothing stopping you from doing that, in fact this is exactly what I do. Generate a profile using wgcf generate and use it in your phone's WireGuard app - everything works just like any other OS.

arunsathiya commented 4 years ago

I am using the -p flag when generating a new config file but the process is stuck at this stage:

➜  ~ ~/Downloads/wgcf generate -p phone.conf
2020/04/22 18:11:05 Using config file: wgcf-account.toml

What might be causing this?

arunsathiya commented 4 years ago

Also noting that I see the same behaviour for wgcf generate -p phone.

ViRb3 commented 4 years ago

Are you running wgcf on your computer or your phone? There are no pre-built binaries for Android, and if you use one of the other releases, e.g. Linux, on your phone, it will result in undefined behavior.

arunsathiya commented 4 years ago

I am running the commands on my Mac, the same computer that I used yesterday.

ViRb3 commented 4 years ago

Has wgcf generate ever worked for you?

arunsathiya commented 4 years ago

Yup, it does. I generated a config and started usign on my Mac computer. But it's not responding -p flag.

arunsathiya commented 4 years ago

To elaborate a bit, I am trying to give my new config file a name so that I can better differentiate my config files.

ViRb3 commented 4 years ago

Interesting. I just tried your exact command on Windows and it worked fine. Could you please open a new issue for the exact problem? I'll take a look when I get back.

arunsathiya commented 4 years ago

I am not entirely sure what was going on, but I changed my Mac's DNS servers (via pihole, by the way) to that of Cloudflare's. It was that of NextDNS earlier.

This DNS change helped.

Now, I am able to run wgcf generate -p phone.conf and it generates a file as expected.

So, all resolved!

arunsathiya commented 4 years ago

Side note: I noticed that wgcf generate -p phone works as well, but it does not generate the file in .conf extension. That would be a nice enhancement to have. Would you like me to submit that as a "enhancement request" on GitHub?