Closed arunsathiya closed 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.
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?
Also noting that I see the same behaviour for wgcf generate -p phone
.
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.
I am running the commands on my Mac, the same computer that I used yesterday.
Has wgcf generate
ever worked for you?
Yup, it does. I generated a config and started usign on my Mac computer. But it's not responding -p
flag.
To elaborate a bit, I am trying to give my new config file a name so that I can better differentiate my config files.
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.
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!
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?
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.