Wireguard: packet loss and very high latency

Hello, I have a wireguard interface on the router and another on my DNS server. Both are connected to the same endpoint and entry node. I use this setup because I want to self-host my ad blocker. Like I said, the problem is the very high latency.

If I ping or

traceroute 1.1.1.1

, sometimes the delay with will be normal, but half the time or more the flow will be interrupted. For example:

traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 46 byte packets
1 10.64.0.1 (10.64.0.1) 26.246 ms 26.258 ms 25.844 ms
2 irb-110.as08-10g.qc1.ca.m247.ro (37.120.205.241) 38.617 ms 43.655 ms 136.636 ms
3 * * *
4 * * *
5 * motl-b1-link.ip.twelve99.net (213.248.90.212) 26.434 ms 26.166 ms
6 cloudflare-ic-372167.ip.twelve99-cust.net (80.239.130.183) 56.032 ms 27.488 ms 26.386 ms
7 one.one.one.one (1.1.1.1) 26.287 ms 26.327 ms 26.295 ms

Why is there a blockade in the middle?
As a result, websites will even fail to load.

Hi

Did you set persistent Keepalive to 20-30s? It is passible, that the Wireguard drops the connection becouse of inactivití, and whwn neccessery rebuilds it.

Yes. But nevermind, I will look at it again. I probably made a mistake and it’s better if fix it myself.
Are you on drugs?

I still have 10000 milliseconds requests sometimes but it works well so I don’t mind. Creating a Wireguard interface for the DNS server was useless. I just created a normal interface on the Wireguard VLAN.