You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a WG server and there are connected several clients, without any trouble.
I have a ESP32 Dev Module. I use Version 0.1.5 from this Wireguard lib implementation.
I added my credentials in your uptime_post example.
char private_key[] = "THISISVERYPRIVATE="; // private key of the client (ESP)
char public_key[] = "THISISVERYPUBLIC="; // public key of the server (remote linux VPN server)
IPAddress local_ip(10,6,0,19); // VPN IP for this VPN client
char endpoint_address[] = "dynvpnextra.someurl.com"; // VPN/Wireguard server hostname
int endpoint_port = 1194;
I'm not able to finish the handshake succesful.
My ESP shows these messages (I added some Log code to the Lib wireguardif.c file)
My vpn server recieves the datapackes, but is not able to make a correct handshake. peer 3 ((invalid address)) did is this, what I#m curious about. Here is the log for the not working ESP connection.
Mar 18 13:08:44 v22018025794161410 kernel: [1283036.084784] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 11)
Mar 18 13:08:44 v22018025794161410 kernel: [1283036.084835] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Mar 18 13:08:49 v22018025794161410 kernel: [1283041.204830] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 12)
Mar 18 13:08:49 v22018025794161410 kernel: [1283041.205395] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Mar 18 13:08:54 v22018025794161410 kernel: [1283046.325004] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 13)
Mar 18 13:08:54 v22018025794161410 kernel: [1283046.325058] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Mar 18 13:09:00 v22018025794161410 kernel: [1283051.700864] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 14)
Mar 18 13:09:00 v22018025794161410 kernel: [1283051.701143] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Mar 18 13:09:05 v22018025794161410 kernel: [1283056.820881] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 15)
Mar 18 13:09:05 v22018025794161410 kernel: [1283056.821117] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Mar 18 13:09:10 v22018025794161410 kernel: [1283062.197049] wireguard: wg0: Handshake for peer 3 ((invalid address)) did not complete after 5 seconds, retrying (try 16)
Mar 18 13:09:10 v22018025794161410 kernel: [1283062.197144] wireguard: wg0: Sending handshake initiation to peer 3 ((invalid address))
Here is an example with my mobile phone. The handshake is successful and a valid address is handled from the vpn server: (89.248.164.225:26167)
Mar 18 13:14:07 v22018025794161410 kernel: [1283358.607419] wireguard: wg0: Receiving handshake initiation from peer 1 (89.248.164.225:26167)
Mar 18 13:14:07 v22018025794161410 kernel: [1283358.607424] wireguard: wg0: Sending handshake response to peer 1 (89.248.164.225:26167)
Mar 18 13:14:07 v22018025794161410 kernel: [1283358.607815] wireguard: wg0: Keypair 9510 created for peer 1
Mar 18 13:14:07 v22018025794161410 kernel: [1283358.636344] wireguard: wg0: Packet has unallowed src IP (fe80::1cb9:b525:64b8:1e94) from peer 1 (89.248.164.225:26167)
Mar 18 13:14:07 v22018025794161410 kernel: [1283358.765923] wireguard: wg0: Packet has unallowed src IP (fe80::1cb9:b525:64b8:1e94) from peer 1 (89.247.164.225:26167)
The text was updated successfully, but these errors were encountered:
Hello! I had the same issue and I figured out that this lib doesn't support preshared key so you have to disable/remove preshared key from your peer/server config.
I have a WG server and there are connected several clients, without any trouble.
I have a ESP32 Dev Module. I use Version 0.1.5 from this Wireguard lib implementation.
I added my credentials in your uptime_post example.
I'm not able to finish the handshake succesful.
My ESP shows these messages (I added some Log code to the Lib wireguardif.c file)
My vpn server recieves the datapackes, but is not able to make a correct handshake. peer 3 ((invalid address)) did is this, what I#m curious about. Here is the log for the not working ESP connection.
Here is an example with my mobile phone. The handshake is successful and a valid address is handled from the vpn server: (89.248.164.225:26167)
The text was updated successfully, but these errors were encountered: