WireGuard - Invalid handshake response

Started by Code.Sport, January 29, 2024, 09:19:36 PM

Previous topic - Next topic
Hey together,

I search a lot on the internet but didn't found any solution. May you can assist me to get wirecast running.

Server - OPNsense on a VM
Client - Windows 11

Error Message on Client: "2024-01-29 21:06:56.537: [TUN] [Server_1] Handshake for peer 1 (45.157.*.*:51820) did not complete after 20 attempts, giving up"
The client didn't receive any package gut can sent them.

Server Config:
See attached screenshots

Client Config:

[Interface]
PrivateKey = uDl*************************aFo=
ListenPort = 21841
Address = 192.168.200.100/32

[Peer]
PublicKey = G**********************FA=
AllowedIPs = 192.168.200.0/24, 192.168.201.0/24
Endpoint = 45.157.*.*:51820


I hope that you have hints for me what I should check.

On the server unter VPN: WireGuard: Diagnose I can see send and received packages.

Why did you assign a WG1 interface?
Can you add logging to your accept rule on WAN and check in Live Log if you see anything?

Few things:


WAN IP may change, check if it didn't already. It's best to use a dynamic DNS service

WAN FW rule - change it to IPv4

Allowed IPs on the client 0.0.0.0/0