Jump to content
Not connected, Your IP: 3.142.156.224
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...