Jump to content
Not connected, Your IP: 216.73.217.99
largeplatinum

Handshake failure when trying to connect with wireguard

Recommended Posts

Hey

I'm experiencing ongoing issues with establishing a WireGuard connection from my MikroTik router to AirVPN's European servers. Despite multiple configuration attempts and troubleshooting steps, I'm unable to complete the handshake process. Here are the details: Router: MikroTik (model unspecified)

VPN Protocol: WireGuard
Server: Europe (europe3.vpn.airdns.org)
Port: 51820 (official WireGuard port) Configuration details:
  • MTU: 1320
  • Persistent Keepalive: 15 seconds
  • DNS servers: 10.128.0.1, fd7d:76ee:e68f:a993::1
  • Allowed IPs: 0.0.0.0/0

Steps taken:
  1. Configured WireGuard interface and peer settings as per AirVPN guidelines
  2. Set up appropriate firewall rules to allow WireGuard traffic
  3. Added NAT masquerade rule for the WireGuard interface
  4. Configured routing to direct traffic through the WireGuard interface
  5. Tried multiple ports (1637, 47107, 51820)
  6. Adjusted MTU settings
  7. Ensured time synchronization on the router
  8. Verified DNS settings


Error message:
The connection consistently fails with the following error:
"Handshake for peer did not complete after 5 seconds, retrying (try 2)" I've verified that the public keys match between my router configuration and the AirVPN-provided configuration. The WireGuard client on my Windows PC connects successfully with the same configuration, suggesting the issue may be specific to the MikroTik implementation.

At some point, I tried all the other wireguard ports (official, alternative) with different MTU's like I said above, and only with the official port the error message was different: Peer destroyed and created

Thanks for any help

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...