Jump to content
  • 0

Wireguard VPN client connection problem


Question

Posted

I faced with very strange issue during creating WG connection on my KN-3811 Keenetic Hopper.

Env:

Keenetic OS 4.2.5 preview channel.

Hardware: KN-3811 Keenetic Hopper

 

Problem statement:

I able to create WG connection with ASC parameters and it works ok. I have another WG server w/o ASC, simple WG server. if I try to create connection to this simple WG server I have errors during handshake.

I] Jan 29 16:01:40 kernel: wireguard: Wireguard2: handshake for peer "....." (8) (x.x.181:30919) did not complete after 5 seconds, retrying (try 12)

I tried to check my config with Wireguard programs and they work well. Also I try this config on Keenetic Hero 4g+ also ok.

 

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

You have installed checkboxes in the new connection policy? It happens that people miss this moment, because The default marks are not affixed.

 

Quote

keenetic-wireguard1.jpg

 

Edited by Oleg Izvozchik
  • 0
Posted (edited)

Yeah, I have absolutely some problem - WireGuard client on Keenetic Hopper (KN-3811) have no hanshake with WG peer. But if I use this config on laptop or android (using this Kennetic like router) - its work absolutely fine.

Firmware - 4.2.6

But I'm shure this WG client correctly work on 4.2.4 firmware, but after update I dont have chek it correctly.

Edited by ob-zen
  • 0
Posted (edited)
On 2/16/2025 at 12:00 PM, ob-zen said:

Yeah, I have absolutely some problem - WireGuard client on Keenetic Hopper (KN-3811) have no hanshake with WG peer. But if I use this config on laptop or android (using this Kennetic like router) - its work absolutely fine.

Firmware - 4.2.6

But I'm shure this WG client correctly work on 4.2.4 firmware, but after update I dont have chek it correctly.

I have the same problem with a VPN service provider when I upload the configuration to keenetic it doesn't established connection 4.3.6

Edited by ikebanat
mod
  • 0
Posted

Greetings,

I’ve been dealing with a very similar issue on my Keenetic Hopper (KN-3811), and I finally found the root cause. It’s neither a WireGuard bug nor an ISP block — it’s a race condition in how KeeneticOS applies DNS-based domain routes.

Symptoms

  • WireGuard client on the router continuously drops and reconnects.

  • System log fills with errors:

    • Handshake for peer ... did not complete after 5 seconds, retrying

    • Invalid handshake response from ...

  • High packet loss (up to 60%) and severe YouTube buffering under load.

  • The exact same configuration works perfectly on macOS and iOS within the same network.

What Didn't Work

  • Adjusting WireGuard MTU (1280, 1380, 1450).

  • Tuning PersistentKeepalive.

  • Recreating the WireGuard interface from scratch.

  • Executing CLI workarounds: security-level public and ip nat Wireguard0.

Root Cause & Fix

I had domain-based DNS routes configured (for YouTube, Instagram, Gemini, etc.) routed through the WireGuard interface. The issue stems from the "Add automatically" setting (in Russian interface: «Добавлять автоматически»).

When checked, KeeneticOS attempts to bind and inject the DNS routes during system boot—before the WireGuard interface initializes and completes its initial handshake. This creates a routing loop/race condition: traffic is forced into an unestablished gateway, collapsing the tunnel.

Solution: Uncheck "Add automatically" for all domain routes bound to the tunnel interface. Once disabled, routes are deferred until the gateway is fully active, keeping the tunnel solid without any further handshake failures.

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
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...