yashsingh1/xdaforums huggingface dataset:
[Android General] lucaterpirla:
I have a problem and I have not found a solution online (tried xda and github as well). I am running a kernel that has Wireguard integration (more specifically Blu_spark kernel for Oneplus 5). I am also running stock OOS 5.1.6 stable. The problem is that after some minutes that I lock the phone, the connection goes down, and I am going crazy because I tried so many things to solve the problem. It happens with both 4G and wifi and I made a lot of testing and when I don't have the VPN server active in Wireguard everything works great! I am not blocking any wakelock, I did not select the "optimize for battery" option in the android settings, I have the "keep wifi awake during sleep" voice active. The wireguard app is free to run in the background, I also updated the app with the latest version. I also tried using 2 different VPN service providers (mullad and azireVPN) but nothing changed. It is pretty annoying because when I am downloading something I have to wake the device every 5 minutes to check that it did not stop. I have tried to ask in my kernel's thread but the dev claims he never had this problem. I attached my log so that you can read it and see what's wrong (from the settings of wireguard app), you can read it here It would be really nice if you could link me the solution or help me with this problem. If you need anything else like logcat or similar just write me back and I will provide them for you. https://1drv.ms/t/s!AjktWt8Z_PDRhVvG8FMKnz-sUgc_
[Android General] pesartom:
erm, is there still no permanent solution for getting config files? since azire is no longer free (and i live somewhere where i cant pay online) and mullvad gives 3 hours free.

its too good this whole system.
[Android General] rintinfinn:
Hi everyone,

I set up the android wireguard app and used a profile from mullvad, which works fine. However I'd like to use tasker to stop the service on my home lan, as that is already protected by wireguard running on the firewall. I am using a motog falcon (2013) with lineageos. However there seems to be no kernel available for my phone that supports wireguard. I tried to install the magisk module from https://github.com/skittles9823/Wireguard-Magisk to be able to set wg-commands with tasker, but it does not work. I get a permission error (/system/xbin/wg: not executable: 64-bit elf file). Maybe someone here has an idea how to solve this.
[Android General] THERAJ12:
how much are you paying for the service?
[Android General] rintinfinn:
That's 5 Euros a month.
[Android General] THERAJ12:
Has anyone created own free server for WG?
[Android General] Gordietm:
I've noticed that Wireguard seems to be causing reboots on pixel 3 xl when rooted.
[Android General] vipinaggar:
can there be an option of adding host file in wireguard app so to block ads on non rooted phone.
[Android General] alvintimothyjr:
I attempted to download the config file. However, it was not a zip file. It's an opvpn file...? Please advise.
[Android General] jcmm11:
What's the link you used to download from? I suspect you downloaded an OpenVPN config file rather than a wireguard one
[Android General] alvintimothyjr:
I just downloaded 'azirevpn-configs.zip.' I opened it in wire guard. Do I just enable my geographical preference? If so. Is there any activity I can monitor to verify that the service is enabled?
[Android General] jcmm11:
Yes

Go to https://www.azirevpn.com/ and look in the upper left hand corner. It should either say "You are not connected" or (in green iirc) "You are connected". Click on that for more info about your connection.
[Android General] THERAJ12:
How much are you paying for the service?
[Android General] pyry666:
Maybe I dont understand this correctly, but why when I use my phone as a hotspot with wireguard enabled my tablet still shows my real ip adress?
[Android General] rudolfm:
If you use wireguard with kernel support, it should also work for your hotspot.

If you use it with userspace module, e.g. you see a key symbol in your status line, then it should not work for your hotspot.
[Android General] AZ82:
Do anyone know parameters for intents to start/stop wireguard connection using Tasker?

From reddit.com/r/tasker/comments/9xljd7/help_how_to_turn_on_vpn_automatically Android app have intents

<action android:name="com.wireguard.android.action.REFRESH _TUNNEL_STATES" />

<action android:name="com.wireguard.android.action.SET_TUN NEL_UP" />

<action android:name="com.wireguard.android.action.SET_TUN NEL_DOWN" />

but no one in thread know correct parameters. Can some one help?
[Android General] Donric13:
I have 2 tasks. You have to execute shell (root necessary). Also you have to activate tunnel command line tools in wireguard app (installs a magisk modul).
[Android General] onkeljoe:
I figured out that the AFWall rules are not working properly if wireguard runs.

Wireguard works like a charme but apps like the default Browser are able to establish connections even if those are permitted in the rules. Any ideas what is ging wrong here? VPN and root is allowed and Android 9 (cRdroid) is configured that way that connections at all are only allowed when VPN is active. But even without this setting I get the same issue.

I bet it is not necassary to tell that I am routing 0.0.0.0/0 to the remote net ;) The public IP of my phone equals the public IP of the remote host.

Any hints welcome.
[Android General] jcmm11:
The VPN setting in AFWall is immaterial as far as Wireguard is concerned (at least if you're running it as a kernel module). So just ignore the VPN specific rules in AFWall, they're meaningless in this situation.
[Android General] onkeljoe:
THX. I got that. I do not even have the VPN checkboxes activated.

My issues is that apps which are not allowed to communicate are able to do so when wireguard is active and working. How could that be?
[Android General] jcmm11:
I'm not, currently, actively running Wireguard so I can't test anything. You may be better off taking this to the AFWall+ thread.

Bring logs if you expect any sort of realistic help. He'll also definitely want a dump of your rulesets.
[Android General] andersjohansson81:
Using linage 16 microG version on 1+3T and installed wireguard with azire. Worked fine but without kernel support. So I decided to go with Franco kernel that has wireguard support. Now it doesn't work on cell but works fine on WiFi. Removed everything and reinstalled app and azire configs. Still the same. Saw the same issue for others but no solutions. Any ideas?
[Android General] h4waii:
So, where exactly has the option to install the Magisk module gone?

I'm running a homebuilt ROM based on LineageOS 16.0, with Magisk 19.1, and full kernel support v0.0.20181211 and app v0.0.20190319 and can't find this "Install command line options" in the Settings section. Everything else works, I just need command line access for some automation tools.

EDIT: Huh, turns out my kernel module wasn't actually getting built. Leaving this here for posterity.
[Android General] jcmm11:
See image
[Android General] droidjunky90:
I have all these tunnels, none of them works and its as if my wifi is killed in terms of connections see below SS

What am i doing wrong here?
[Android General] THERAJ12:
Which isp provides wg service now?
[Android General] jofa news:
I have the same problem
[Android General] °Washy:
Could wireguard broke hotspot wifi? My hotspot dashboard crashed ten times.
[Android General] tvoneicken:
I'm using wg to access my home network, not as a general tunnel for all internet traffic. For this reason, I'd like to have a split-DNS set-up with the domain name I use for the home network routed to a DNS server through the tunnel when the tunnel is up. Is anyone aware of an elegant solution for this? The wireguard client only seems to support setting a DNS server for all queries when the tunnel is up...
[Android General] hllywd:
Anybody experienced bootloop when using with OP 7pro & 10.0.2?
[Android General] osnh1958:
I habe a Xioami redmi note 4 with Lineage 9 Magisk and systemless Xposed with Elektra Kernel or Stormguard Kernel Support.

I use Wireguard on my Raspberry with Pihole. It workded well. All traffic goes to Wireguard. And now to my problem:

Til to the Lineage Update from the 20200302 I had only 25 % less speer with Wireguard. After the Systemupdate last week the traffic speed went down. With WLAN ist not the problem, it ist slower. But LTE. Til last week the speed went up to 1500 kb/s (up and down together)

But now on LTE modus I habe not more then 60 kb/s. I use the aktuell Wireguard app 20200309 from the Playstore. If I disable the Kernel module ist noch change with the speed.

Is there al solution?
[Android General] Brainscanner:
Hi everybody,

I've made an app that's similar to tasker. I'd like to integrate the ability to control wireguard tunnels as well.

So apart from adding and requesting the permission and packing the tunnel name as string-extra "tunnel" I run this code:

Unfortunately an exception is thrown when attempting that:

I've also tried this

which just changes the exception slightly:

Wireguard app is installed of course and the setting to to allow remote control is enabled.

When starting other actions that come with the OS (like starting the camera) the above code works perfectly.

Does anybody have an idea?
[Android General] zx2c4:
Here's what WireGuard supports:

App: com.wireguard.android

Intent: com.wireguard.android.action.SET_TUNNEL_UP

Intent: com.wireguard.android.action.SET_TUNNEL_DOWN

Each one of these intents takes an extra field called "tunnel" which is a string:

Intent extra: "tunnel" = "SOME_TUNNEL_NAME"

This should be added to your app manifest:

<uses-permission android:name="com.wireguard.android.permission.CONTROL_TUNNELS" />

And the intent should be sent in the callback of this:

ActivityCompat.requestPermissions(this, new String[]{"com.wireguard.android.permission.CONTROL_TUNNELS"}, someRequestNumber)

(Alternatively, you could allow the user to select a prerequisite permission, from the list of ones declared in your manifest file. Then adding more support for this just means augmenting the XML without touching more code.)
[Android General] GoodyOG:
I'm rooted and i use Kernel module backend but it doesn't share connection via hotspot. Is there any fix for this?
[Android General] Haldi4803:
Does anyone know of a Working Docker Container for Wireguard?

There are a few on the Hub but i haven't managed to get any of these running. My lack of skills or they're incomplete?

Not reall fond of the idea to run Ubuntu in a VM with 4gb ram usage just for Wireguard...

P.S HTC10 PureFusion OS Oreo does support Wireguard now.
[Android General] tiness:
When I saw that I didn't had xbin folder, I've just created it in the system root directory and everything was working after that.

Now I've switch to aosp from a clean phone, wiped everything, and the xbin folder was already there so can't say if the update changed anything, sorry ?
[Android General] buffal0b1ll:
It works now. Pixel 2 8.1 January Stock. Flash 2.08 Magisk. 15.2

Thanks
[Android General] Ryan1469:
Wireguard is not working for me on samsung s8 using ambasadiinote 8 port 7.1.1
[Android General] zx2c4:
This is because your kernel doesn't have WireGuard. However, there should be a better message than that; this is a regression in the newer version. I've just fixed it, and it should be rolling out on the play store shortly.
[Android General] Ryan1469:
Ohh right. Sorry to ask but do you know if there's a s8 kernel which supports wireguard? Or i m gonna flash all available kernels and see if it works.
[Android General] dcotarobles:
Hi! I don't have a lot of knowledge about this but when I connect to a corporate wifi network WG seems to be killing my connection , everything works again when I turn off WG. This could be a restriction set by the administrator or am I doing something wrong ?
[Android General] kantjer:
I'm having the same issue since a few days. WG worked fine before but now when enabling it I have no Internet access. Tried on both WiFi and 4G. I hadn't had time to make a log so didn't post this issue until now.
[Android General] zx2c4:
Try generating a new configuration (using the guide from the OP) and reimporting it. I have a feeling AzireVPN did something stupid here.
[Android General] kantjer:
Thanks, that fixed it
[Android General] bond32:
I probably broke something, but Wireguard was working perfect until I had to reinstall my ROM (dirty, no data wipe, no kernel change). I was using a modified version of a kernel with Wireguard added and that was working great. After reinstalling the Rom (only system), I now get an error in the Wireguard app "Error bringing up the tunnel: Unable to configure the tunnel". I have tried reinstalling the stock boot.img, rebooting again, reinstalling the modified kernel with Wireguard, still haven't had any luck. Any thoughts?

I thought maybe I need to completely remove the Wireguard app. I did try wiping the data of the app and generating a new config file. I wasn't able to make progress, still getting the same error.
[Android General] Ryan1469:
Just to let others know who have s8 or s8+ that wireguard is implemented into tkkg kernel which can be used for nougat, oreo or note 8 port for s8 or plus.
[Android General] levone1:
Any chance of modifying a kernel, (post-build), to enable this, (patch, etc)?

Also, is this fundamentally different than Keweon - https://xdaforums.com/android/software-hacking/keweon-privacy-online-security-t3681139/amp/?

(not trying to bring in different threads, just asking from curiosity; I don't understand this stuff so much...)

Thanks
[Android General] zx2c4:
Send logcat of the app when you get this message. Use Matlog app to obtain log, and then PM it to me or post it here.
[Android General] zx2c4:
Link to xda thread, please?
[Android General] Ryan1469:
Here you go.

https://xdaforums.com/galaxy-s8/sam...-device-development/kernel-tgpkernel-t3654423
[Android General] andschwa:
I managed to figure out how to set up the Android app for Mullvad, and wrote up some instructions on my blog, but apparently I don't post enough to no longer count as a new user (been on XDA since the Galaxy Nexus days, so... I guess I'm a lurker).

This is it, maybe it'll go through as not a hyperlink: andschwa.com/post/mullvad-wireguard/

It's working for me, and it's pretty great. Let me know how it goes!
[Android General] Cryptycat7:
Kudos to the developers for bringing this amazing VPN implementation to Android. Is there a way to make this work without root, or is no root support planned for the future? I am on U11+ with Cleanslate kernel, so required kernel support is given.
[Android General] bond32:
Awesome!

I'm trying your guide, how would I need to run this on my computer?

When I try in terminal emulator, it shows invalid argument. I'm probably doing something incorrect.
[Android General] andschwa:
Can you show me the exact command you ran, and exact error? Also, are you on a Linux distro or a Mac?

Here's from their router instructions:

curl [url]https://api.mullvad.net/wg/[/url] -d account=YOURMULLVADACCOUNTNUMBER --data-urlencode pubkey=YOURPUBLICKEY

So you can probably drop the -sSL, let me know.
[Android General] rudolfm:
I use a Huawei Y550 with LOS 14.1 and kernel support for wireguard. My wireguard/azire vpn stopped working two days ago. I updated the app, still not working. I then uninstalled the app, installed it new, downloaded new config files, installed them, and now it works again.

I also noticed that i should start wifi first and then enable wireguard.

---------- Post added at 01:17 PM ---------- Previous post was at 01:08 PM ----------

I have the same impression. Sadly i did not save the old config files as to compare them with the newly generated ones.

I could try the old app/new config if this helps with your efforts.
[Android General] bond32:
I used the -curl command you posted in your guide. Took me a while as I made a few mistakes. But I made sure it was exactly what you had. I'll update when I find my command I had, one sec.

curl -sSL https://api.mullvad.net/wg/ -d account="1111111111111111" --data-urlencode pubkey="a+BlYZOZ6HQko+e1qNnndQoqrLqDKfe014HzEjwmvXRgM="
[Android General] andschwa:
Dumb question, but you replaced the 111111... with your Mullvad account number, right? I'd also try without the -sSL.
[Android General] bond32:
Ah. Well then, I imagine that is the issue. Let me try later...
[Android General] bond32:
Still no luck. I'm sure I'm missing something simple .

I was using a terminal emulator on my phone. I do have Busybox
[Android General] andschwa:
Oh I see it: you have BBcode URL tags around the URL in the command, the BRACKET URL BRACKET thing. Take those off so it's just:

https COLON SLASH SLASH...

Wow formatting here is difficult.

Also, I'd delete the screenshot ASAP as it has your Mullvad account number.
[Android General] bond32:
Still shows"Invalid Arguments"

Btw thank you for your help. I really appreciate it!
[Android General] andschwa:
It's all good, command line programs are picky. I think you need double quotes around the public key, because it has a plus symbol in it.

pubkey="a+thekeythatendswith="

Fingers crossed on that formatting.
[Android General] bond32:
Still getting invalid arguments.

Is there a way on Windows that would make this easier?
[Android General] poincare:
Thanks 100x bro!! :highfive::highfive: That is exactly what I was looking for.

EDIT: Tried several times with different servers. In each case, I'm just not able to get it to connect. Followed your guide *exactly* and, in WireGuard app it seems to connect w/o error, but it's unfortunately without a WireGuard server from Mullvad. :( I'll have to investigate more, maybe see why it doesn't work.
[Android General] smaeul:
It looks like you have the app installed to adopted storage (an "internal SD card"). For right now, if you can, move the app to "regular" internal storage and it will work properly. The next build we release will support installation to adopted storage like you have now.
[Android General] andersjohansson81:
I have been using wireguard for some time now with azire vpn, everything works great but when using the cellular network it cuts the connection ( works fine on WiFi). Is it my setup or is it a known issue?
[Android General] Cryptycat7:
Is there a guide how to configure the required file for a different VPN provider like Expressvpn or tunnelbear?
[Android General] rudolfm:
They probably don't offer wireguard.

https://www.expressvpn.com/what-is-vpn/protocols
[Android General] Cryptycat7:
Makes perfectly sense. Should have thought myself, but since they advertise supporting so many platforms, I'll write a support request, so far they were really responsive. If all the major vpn providers hop on the WireGuard train it might establish as a new standard faster.
[Android General] zx2c4:
Should be fixed with the latest apk.
[Android General] zx2c4:
Friendly reminder that a ROM compatibility list for WireGuard is being maintained here:

https://xdaforums.com/showpost.php?p=74667371&postcount=2

If anybody is using a ROM that isn't on here, and it works with WireGuard, please let me know so that I can add it.
[Android General] rudolfm:
I am using this one on my Huawei Y550:

https://xdaforums.com/showpost.php?p=75092873&postcount=5925

I am not the developer.
[Android General] ipredatorv:
Does anyone know how to configure WG with the provider 5uf99.com?
[Android General] Cryptycat7:
Thanks for the updated Magisk module. Just wanted to give some positive feedback. Connection seems much more stable already.
[Android General] zx2c4:
Definitely placebo effect, but glad it's working well for you. :)
[Android General] Cryptycat7:
WireGuard didn't want to connect for me until I enabled ExpressVPN. Handover from Wi-Fi to mobile network is still hit and miss for me. Have to disable WireGuard and switch it back on to connect. Let me know if you want me to provide a log, and if yes, which log would be helpful.
[Android General] shadavis08:
I tried to create an account with the azireVPN but it's asking for a referral code?
[Android General] sdlopez83:
Disregard the referral code leave blank
[Android General] shadavis08:
Won't let me login? Lol
[Android General] Dylanballardlgv20:
Im having issues with the command line tools on lg v20. Wireguard app says it installed them but to no avail. When i type wg or wg-quick it says wg command not found.

Nvm forgot to install the magisk module.
[Android General] Still_living714:
Delete please
[Android General] bond32:
Is there any reason to only enable one server or ticking all of them?
[Android General] Cryptycat7:
Wondering about the same. It doesn't dynamically switch the servers from my experience. Even if you enable them all, it seems to stay static. Do you also have to reconnect frequently? One server kills the connection, so I have to enable another one. It also only works on top of ExpressVPN, doesn't work with tunnelbear, WireGuard alone also rarely works. Using the free plan, so I am the last one to complain, would like to know if I can get around this if I purchase to AzireVPN.
[Android General] bond32:
Totally unscientific test, I activated my list starting from the bottom, as I usually do because I feel I get the best connection on the US server. So I enabled all of the AzireVPN servers, then looked this morning and it was on the Canada server. Perhaps it does switch around if needed?

In other news, because of this guide, Wireguard, AzireVPN, and you crazy smart developers, you have solved the million dollar question if I should actually root my device or not. So thanks for that!
[Android General] Cryptycat7:
Thats great news. Will try the same and report back. The ability to change the Device IP is fantastic. WireGuard seems to be the only solution allowing two VPNs simultaneously.
[Android General] lammpat:
[MENTION=5434776]zx2c4[/MENTION] wireguard is paid now? Because when I am logging in its asking for subscription, in sultan thread you said its free until further notice, so just wanted to know. I made account in Dec 17.
[Android General] dcotarobles:
Finally I got it working! Everything seems to be ok but I notice that browsing is really slow :crying:
[Android General] zx2c4:
WireGuard is an open source software project and a protocol. It is not a service. There are no subscriptions. There are no prices. There are a few free open source implementations, some documentation, and a collection of academic papers.

I believe what you're asking about is a commercial provider of WireGuard services, such as the ones mentioned in the first post of this thread. I have nothing to do with those commercial providers and cannot give you information. I assume, however, that the problem is on your side, not theirs, and if you follow the directions precisely, you'll still get the free service you were hoping for. But I'm not available to help you with commercial providers. Please contact them directly. They have the funding and resources to handle users like yourself.

Finally, you appear to have violated the rules on the developer thread by posting twice this user inquiry there, riddled with poor orthography. Moderators were required to clean this duplicated post up two times in a row, with the second one being even more inchoate than the first. Why you violated these terms twice in a row, after moderators got involved, I don't know, but I kindly ask you to simply stay away from these threads entirely in the future.
[Android General] lammpat:
I got warning from mod and below was my reply.. I hope you understand, sorry for bothering you mate.

Oh, didn't know that it was deleted by staff, i posted via xda lab while traveling and when i didn't see my post so i thought something went wrong and posted again.

As you can see my history i never violates xda rules and never disrespect any devs.

It wasn't intentional, please accept my apology
[Android General] multi_rom_user:
So just to make sure on this subject. If I'm seeing this, does it mean it's working properly or should there be a key in my status bar to know it's running also?