element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Calls not connecting with Wireguard VPN

Open tomleb opened this issue 4 years ago • 3 comments

Describe the bug

I have a VPN server at home to connect to my homelab. I connect to it using wireguard on android. The VPN configuration only allow the subnet 192.168.255.0/24 to the tunnel.

When my vpn is up on the phone, calls no longer connect. I see "Call connecting..." forever. With the VPN down, everything works fine.

To Reproduce Steps to reproduce the behavior:

  1. Start the vpn on the phone
  2. Make a call to someone (1-to-1 call)
  3. Call stuck in "Call connecting..." state

Expected behavior

I would expect the call to connect since only traffic within 192.168.255.0/24 goes through the VPN.

Smartphone (please complete the following information):

  • Device: Xiaomi, Mi A2
  • OS: Android 8.1.0

Additional context

  • App version and store: 1.0.14 - F-Droid
  • Homeserver: matrix.org

I see a similar behavior in Jitsi, calls connect but I don't get any audio/video from the other person, and the person doesn't get any audio/video from me.

Here's the configuration file for wireguard for the phone:

[Interface]
Address = 192.168.255.2/24
PrivateKey = <private key>

[Peer]
AllowedIPs = 192.168.255.0/24
Endpoint = 192.168.0.175:51820
PublicKey = +883cYmWGvYEkjZW7JBinmxx/zqhx+LnwFI3MOWPjlY=

tomleb avatar Feb 03 '21 13:02 tomleb

I have the same problem (android 11/LineageOS 18.1), however, this only seems to happen with wireguard as a kernel module, not with the userspace backend

pklampros avatar Jan 30 '22 00:01 pklampros

Anyone managed to fix this? Having the same issue here

hardwareadictos avatar Sep 15 '23 09:09 hardwareadictos

I can confirm the issue, at first I thought it was my TURN server but tried with a public one and I had the same problem.

Then I disconnected Wireguard and works. To me does not work in either user mode or kernel mode.

I have a POCO F3 with Lineage 20.

Have you guys tried with another application for android?

Thanks

An4cl3t0 avatar Apr 07 '24 15:04 An4cl3t0