Shouldn't devices tethered to a device using Wireguard share the same IP?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Guys,
Can you tell me if this is working as it should?...
I have a phone with Wireguard on. I share the connection via tethering/hotspot. When I check the IP on the tethered device I don't see the same IP as my Wireguard endpoint. What I do see is an IP from the phone's mobile network, the one running Wireguard.
Is this right? Does this mean that traffic from that tethered device not using the Wireguard connection? I'm confused.
Thanks,
Jose
Quoted 9 lines · Jose Marinez
Hi Guys,
Can you tell me if this is working as it should?...
I have a phone with Wireguard on. I share the connection via tethering/hotspot. When I check the IP on the tethered device I don't see the same IP as my Wireguard endpoint. What I do see is an IP from the phone's mobile network, the one running Wireguard.
Quoted 7 lines
Is this right? Does this mean that traffic from that tethered device not using the Wireguard connection? I'm confused.
Thanks,
Jose
At least on Android, tethering data is *not* routed through your VPN. If you want that to happen, you will have to use the WireGuard kernel module which requires a rooted device and a custom kernel. On some supported devices
(https://github.com/WireGuard/android-wireguard-module-builder/tree/master/kernels)
you can use root access to install the required module automatically through the app, on your stock kernel.
Harsh
Thank you all or the responses.
Wow. This seems like a big issue for Android and iOS. How many people like me that are tethering, go about convinced their devices are inheriting the VPN connection? Are there channels to communicate with both Google and Apple about this?
@Harsh - I do have a rooted Android device with Wireguard on I can use for tethering. Say I build my kernel module from the list you sent. How do I go about integrating it into the Wireguard Android app?
Thanks,
Jose
Quoted 32 lines · Harsh Shandilya
Quoted 16 lines · Jose Marinez
Hi Guys,
Can you tell me if this is working as it should?...
I have a phone with Wireguard on. I share the connection via tethering/hotspot. When I check the IP on the tethered device I don't see the same IP as my Wireguard endpoint. What I do see is an IP from the phone's mobile network, the one running Wireguard.
Is this right? Does this mean that traffic from that tethered device not using the Wireguard connection? I'm confused.
Thanks,
JoseQuoted 1 line
At least on Android, tethering data is *not* routed through your VPN. If you want that to happen, you will have to use the WireGuard kernel module which requires a rooted device and a custom kernel. On some supported devices
(https://github.com/WireGuard/android-wireguard-module-builder/tree/master/kernels)
you can use root access to install the required module automatically through the app, on your stock kernel.Harsh
Quoted 1 line
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thanks Mehdi. I'll take a look.
@Harsh,
Thank you for the clarification. I will reach out to both. I know that on macOS Catalina, Apple implemented new APIs for loading kernel modules now that the core of the OS is read-only. Not sure if they've done the same for iOS. Perhaps they'll announce that next month.
Quoted 6 lines
@Harsh - I do have a rooted Android device with Wireguard on I can use for tethering. Say I build my kernel module from the list you sent. How do I go about integrating it into the Wireguard Android app?
Quoted 2 lines
Quoted 2 lines
The app will automatically detect the kernel module and work with it, there's no user-facing work to be done.
Let me see if I understand you correctly. Are you saying that if I take my rooted phone make the /kernels folder add the manifest.xml and corresponding version kernel, the regular Wireguard app in the Play Store will utilize it? I'm trying to make sure I follow.
Will it show this extended UI in Settings?
Thanks again,
Jose
On Wednesday, May 20, 2020, 03:00:18 PM EDT, Mehdi Sadeghi <[email protected]> wrote:
Hi Marinez and the list,
There is a very nice open source app that can share the VPN connection of a rooted device with clients on Android. Here is the link:
https://github.com/Mygod/VPNHotspot/blob/master/README.md
Cheers,
Mehdi
Am 20. Mai 2020 20:40:31 MESZ schrieb Jose Marinez <[email protected]>:
Quoted 32 lines
Thank you all or the responses.Wow. This seems like a big issue for Android and iOS. How many people like me that are tethering, go about convinced their devices are inheriting the VPN connection? Are there channels to communicate with both Google and Apple about this? @Harsh - I do have a rooted Android device with Wireguard on I can use for tethering. Say I build my kernel module from the list you sent. How do I go about integrating it into the Wireguard Android app?Thanks,JoseOn Wednesday, May 20, 2020, 1:53 PM, Harsh Shandilya <[email protected]> wrote:>
Quoted 31 lines · Jose Marinez
Quoted 17 lines
Hi Guys,
Can you tell me if this is working as it should?...
I have a phone with Wireguard on. I share the connection via tethering/hotspot. When I check the IP on the tethered device I don't see the same IP as my Wireguard endpoint. What I do see is an IP from the phone's mobile network, the one running Wireguard.
Is this right? Does this mean that traffic from that tethered device not using the Wireguard connection? I'm confused.
Thanks,
JoseQuoted 1 line
At least on Android, tethering data is *not* routed through your VPN. If you want that to happen, you will have to use the WireGuard kernel module which requires a rooted device and a custom kernel. On some supported devices
(https://github.com/WireGuard/android-wireguard-module-builder/tree/master/kernels)
you can use root access to install the required module automatically through the app, on your stock kernel.Harsh
Quoted 1 line
Signature · 1 line
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
Quoted 13 lines · Jose Marinez
Thanks Mehdi. I'll take a look.
@Harsh,
Thank you for the clarification. I will reach out to both. I know that on macOS Catalina, Apple implemented new APIs for loading kernel modules now that the core of the OS is read-only. Not sure if they've done the same for iOS. Perhaps they'll announce that next month.
Quoted 3 lines
@Harsh - I do have a rooted Android device with Wireguard on I can use for tethering. Say I build my kernel module from the list you sent. How do I go about integrating it into the Wireguard Android app?
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
The app will automatically detect the kernel module and work with it, there's no user-facing work to be done.
Let me see if I understand you correctly. Are you saying that if I take my rooted phone make the /kernels folder add the manifest.xml and corresponding version kernel, the regular Wireguard app in the Play Store will utilize it? I'm trying to make sure I follow.
If you contribute your device's kernel to the repository I linked for you, then we will build and host a signed kernel module for it. When you go into the WireGuard app's settings page, you will find an option titled, at least in English, "Download and install kernel module". Pressing that will attempt to locate the module previously created by the WireGuard infrastructure and load it onto your device.
Quoted 74 lines
Will it show this extended UI in Settings?
Thanks again,
JoseOn Wednesday, May 20, 2020, 03:00:18 PM EDT, Mehdi Sadeghi <[email protected]> wrote:
Hi Marinez and the list,
There is a very nice open source app that can share the VPN connection of a rooted device with clients on Android. Here is the link:
https://github.com/Mygod/VPNHotspot/blob/master/README.md
Cheers,
MehdiAm 20. Mai 2020 20:40:31 MESZ schrieb Jose Marinez <[email protected]>:
Quoted 41 lines
Thank you all or the responses.Wow. This seems like a big issue for Android and iOS. How many people like me that are tethering, go about convinced their devices are inheriting the VPN connection? Are there channels to communicate with both Google and Apple about this? @Harsh
- I do have a rooted Android device with Wireguard on I can use for tethering. Say I build my kernel module from the list you sent. How do I go about integrating it into the Wireguard Android app?Thanks,JoseOn Wednesday, May 20, 2020, 1:53 PM, Harsh Shandilya <[email protected]> wrote:>Quoted 32 lines · Jose Marinez
Quoted 17 lines
Hi Guys,
Can you tell me if this is working as it should?...
I have a phone with Wireguard on. I share the connection via tethering/hotspot. When I check the IP on the tethered device I don't see the same IP as my Wireguard endpoint. What I do see is an IP from the phone's mobile network, the one running Wireguard.
Is this right? Does this mean that traffic from that tethered device not using the Wireguard connection? I'm confused.
Thanks,
JoseQuoted 1 line
At least on Android, tethering data is *not* routed through your VPN. If
you want that to happen, you will have to use the WireGuard kernel module which requires a rooted device and a custom kernel. On some supported devices
(https://github.com/WireGuard/android-wireguard-module-builder/tree/master/kernels)
you can use root access to install the required module automatically through the app, on your stock kernel.Harsh
Quoted 1 line
Signature · 1 line
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
Thank you so much Harsh. What's the best way to make my kernel available to you? Even if you could allow me to push to the repo I wouldn't know where to save it.
Thank you for this and your work on the apps.
Quoted 3 lines · Jose Marinez
Thank you so much Harsh. What's the best way to make my kernel available to you? Even if you could allow me to push to the repo I wouldn't know where to save it.
The repo is maintained on GitHub so you will have to fork the repository and create a pull request with your changes, help.github.com has very beginner friendly documentation if this is your first time around this.
The process for adding a kernel is a bit involved and the documentation isn't quite fleshed out. You can check the steps out here[1] and an example of adding a new device to the repository here[2].
1: https://github.com/WireGuard/android-wireguard-module-builder#adding-your-phones-kernel
2: https://github.com/WireGuard/android-wireguard-module-builder/pull/3/files
Thank you. I will try it out. Fingers crossed!!!
On Thursday, May 21, 2020, 10:29:12 AM EDT, Harsh Shandilya <[email protected]> wrote:
Quoted 3 lines · Jose Marinez
Thank you so much Harsh. What's the best way to make my kernel available to you? Even if you could allow me to push to the repo I wouldn't know where to save it.
The repo is maintained on GitHub so you will have to fork the repository and create a pull request with your changes, help.github.com has very beginner friendly documentation if this is your first time around this.
The process for adding a kernel is a bit involved and the documentation isn't quite fleshed out. You can check the steps out here[1] and an example of adding a new device to the repository here[2].
1: https://github.com/WireGuard/android-wireguard-module-builder#adding-your-phones-kernel
2: https://github.com/WireGuard/android-wireguard-module-builder/pull/3/files