WireGuard (Android) Configuration issues, etc.
Jason A. Donenfeld
Jason at zx2c4.com
Fri Dec 1 21:59:53 CET 2017
Thanks for getting in touch with your detailed email. Responses are
> But in the process, I've figured out that wq-quick is NOT
> working properly The wg-quick issue is probably why the
> android WireGuard app isn't working (as I assume it requires wg-quick)... My
> pixel doesn't seem to recognise the wg-quick script being in /system/xbin
> # wg-quick up wg0
> sh: /system/xbin/wg-quick: No such file or directory
> sh: /system/xbin/wg-quick: Permission denied
Ahhh. wg-quick indeed requires bash, and from what I gather, there
isn't bash on your ROM. You should be able to build that easily from
the AOSP source `mka bash`. This is one of the reasons I first
launched the Android stuff with the local_manifest.xml hack instead of
the standalone tools. I'll have to think about a more general purpose
solution, but for now, I thing the best thing you can do would be to
just add bash. If you're stuck and need help, I can probably build you
a statically linked musl aarch64 bash that will work mostly
Alternatively, maybe there is bash on that phone, but it isn't where I
was expecting. Could you run the commands:
# find / -name bash -or -name env 2>/dev/null
And send me the output?
> That said ~ I'm
> going to have a stab at repackaging the user-space components as a standard
> android flashable zip (as we talked about on XDA, @Jason), start fresh and
> see if I can get it working...
We might wind up wanting that statically compiled bash for the .zip.
Based on your findings above, we can adjust this plan accordingly.
Having the flashable .zip infra seems like a good idea either way.
> All of that aside; I'm wondering if someone could post a working
> config/template for AzireVPN or any other free VPN that supports
We don't use this list for commercial providers -- they have their own
private support emails and contact methods -- but I can help you with
the free non-commericial demo server -- demo.wireguard.com.
> (minus any private information, respectfully). I'd just like to
> make sure that I have a working config for WireGuard on Android -> so that
> when I try to test, after re-installing wg-tools ~ that might be one less
> hiccup... I've never used WireGuard, so all very new to me.
Makes sense. It might make the most sense to just head into #wireguard
on Freenode too, where we can troubleshoot basic how-to things in real
> PS: @Jason - I'm also going to have a look (later on) and see If i can get
> the WireGuard android app to not "crash on boot" in Oreo ~ using the commits
> for Kernel Aduitor's fixes that I pointed out to you yesterday, when I
> brought up the issue. ttyl
Oh, wonderful! Don't hesitate to send patches to this list for that stuff.
More information about the WireGuard