<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hey there,<div><br></div><div>I'm trying to connect my android client to a wireguard server. This worked absolutly fine in the past.</div><div><br></div><div>However now the client isn't initiating a handshake. I've tried it on my wireless and cellular network. It doesn't work with on that android device. However it works absolutly fine on every other device in my network (Raspberry, Linux computers etc.). <br><br>So I've done some debugging. When sniffing the traffic on my router using tcpdump there is absolutly no connection to my server and my server doesn't receive anything to. </div><div><br></div><div>Then I looked at the logcat of wireguard and saw that it stopped after "Device started". On another device from a friend of mine it continues with the handshake. <br><br>Here's the log of the non working device:</div><div><div>>>>10-04 20:08:46.663 17087 21706 D WireGuard/GoBackend: Changing tunnel XXX to state UP</div><div>10-04 20:08:46.663 17087 21706 I WireGuard/GoBackend: Bringing tunnel up</div><div>10-04 20:08:46.687 17087 21706 D WireGuard/GoBackend: Go backend v0.0.20180613</div><div>10-04 20:08:46.687 17087 21706 D WireGuard/GoBackend/XXX: Debug log enabled</div><div>10-04 20:08:46.687 17087 21706 I WireGuard/GoBackend/XXX: Attaching to interface tun0</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: event worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.688 17087 17132 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.688 17087 17116 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: encryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: handshake worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: decryption worker - started</div><div>10-04 20:08:46.689 17087 17116 D WireGuard/GoBackend/XXX: Routine: TUN reader - started</div><div>10-04 20:08:46.690 17087 21706 D WireGuard/GoBackend/XXX: Interface has MTU 1280</div><div>10-04 20:08:46.690 17087 21706 D WireGuard/GoBackend/XXX: UAPI: Removing all peers</div><div>10-04 20:08:46.690 17087 21706 D WireGuard/GoBackend/XXX: UAPI: Updating private key</div><div>10-04 20:08:46.694 17087 21706 D WireGuard/GoBackend/XXX: UAPI: Transition to peer configuration</div><div>10-04 20:08:46.699 17087 21706 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - UAPI: Created</div><div>10-04 20:08:46.699 17087 21706 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - UAPI: Updating endpoint</div><div>10-04 20:08:46.700 17087 21706 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - UAPI: Updating persistent keepalive interva</div><div>10-04 20:08:46.701 17087 21706 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - UAPI: Adding allowedip</div><div>10-04 20:08:46.703 17087 17108 D WireGuard/GoBackend/XXX: Routine: receive incoming IPv6 - starting</div><div>10-04 20:08:46.703 17087 20915 D WireGuard/GoBackend/XXX: Routine: receive incoming IPv4 - starting</div><div>10-04 20:08:46.703 17087 21706 D WireGuard/GoBackend/XXX: UDP bind has been updated</div><div>10-04 20:08:46.703 17087 21706 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - Starting...</div><div>10-04 20:08:46.704 17087 17135 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - Routine: sequential receiver - started</div><div>10-04 20:08:46.704 17087 17108 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - Routine: nonce worker - started</div><div>10-04 20:08:46.704 17087 17135 D WireGuard/GoBackend/XXX: peer(lrQtÔǪ5XFs) - Routine: sequential sender - started</div><div>10-04 20:08:46.704 17087 21706 I WireGuard/GoBackend/XXX: Device started<br>'<br>And here's the log on the working device:<br><div>10-04 20:14:13.349 13605 13622 D WireGuard/GoBackend: Changing tunnel vserver to state UP</div><div>10-04 20:14:13.349 13605 13622 I WireGuard/GoBackend: Bringing tunnel up</div><div>10-04 20:14:13.350 13605 13622 D WireGuard/GoBackend: Requesting to start VpnService</div><div>10-04 20:14:13.518 13605 13622 D WireGuard/GoBackend: Go backend v0.0.20180613</div><div>10-04 20:14:13.519 13605 13622 D WireGuard/GoBackend/vserver: Debug log enabled</div><div>10-04 20:14:13.520 13605 13622 I WireGuard/GoBackend/vserver: Attaching to interface tun0</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: event worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.545 13605 13623 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.545 13605 13631 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.545 13605 13623 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.545 13605 13623 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.545 13605 13623 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.546 13605 13631 D WireGuard/GoBackend/vserver: Routine: TUN reader - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.546 13605 13623 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: encryption worker - started</div><div>10-04 20:14:13.546 13605 13650 D WireGuard/GoBackend/vserver: Routine: handshake worker - started</div><div>10-04 20:14:13.546 13605 13655 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.547 13605 13651 D WireGuard/GoBackend/vserver: Routine: decryption worker - started</div><div>10-04 20:14:13.547 13605 13622 D WireGuard/GoBackend/vserver: Interface has MTU 1280</div><div>10-04 20:14:13.548 13605 13622 D WireGuard/GoBackend/vserver: UAPI: Removing all peers</div><div>10-04 20:14:13.548 13605 13622 D WireGuard/GoBackend/vserver: UAPI: Updating private key</div><div>10-04 20:14:13.549 13605 13622 D WireGuard/GoBackend/vserver: UAPI: Transition to peer configuration</div><div>10-04 20:14:13.550 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - UAPI: Created</div><div>10-04 20:14:13.550 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - UAPI: Updating endpoint</div><div>10-04 20:14:13.550 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - UAPI: Updating persistent keepalive interva</div><div>10-04 20:14:13.550 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - UAPI: Adding allowedip</div><div>10-04 20:14:13.550 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - UAPI: Adding allowedip</div><div>10-04 20:14:13.556 13605 13651 D WireGuard/GoBackend/vserver: Routine: receive incoming IPv6 - starting</div><div>10-04 20:14:13.557 13605 13655 D WireGuard/GoBackend/vserver: Routine: receive incoming IPv4 - starting</div><div>10-04 20:14:13.558 13605 13622 D WireGuard/GoBackend/vserver: UDP bind has been updated</div><div>10-04 20:14:13.558 13605 13622 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Starting...</div><div>10-04 20:14:13.558 13605 13630 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Routine: nonce worker - started</div><div>10-04 20:14:13.558 13605 13630 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Routine: sequential sender - started</div><div>10-04 20:14:13.558 13605 13655 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Routine: sequential receiver - started</div><div>10-04 20:14:13.558 13605 13622 I WireGuard/GoBackend/vserver: Device started</div><div>10-04 20:14:13.801 13605 13655 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Sending handshake initiation</div><div>10-04 20:14:13.804 13605 13655 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Awaiting keypair</div><div>10-04 20:14:13.822 13605 13623 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Received handshake response</div><div>10-04 20:14:13.822 13605 13623 D WireGuard/GoBackend/vserver: peer(fJY3ÔǪfFm0) - Obtained awaited keypair</div></div></div><div><br></div><div>And here's the config:<br></div><div><div>[Interface]</div><div>Address = fd00:2:1::5/64</div><div>PrivateKey = YAXZKLpq+XXXX</div><div><br></div><div>[Peer]</div><div>AllowedIPs = fd00::/16</div><div>Endpoint = XXX.de:51820</div><div>PersistentKeepalive = 25</div><div>PublicKey = lrQtqqXosiux8XXXX</div></div><div><br></div><div>Do you've any idea why this happen? If you need further information for debugging let me know!.<br><br>Thanks in advance</div><div>Sören</div><div><br></div></div></div></div></div>
<br>