Problems with latency over WireGuard VPN to YouTube\Google

Hello, i have issue with VPN WG and youtube\google latecy. When vpn is off yt\gl work pretty fast 20-30ms. But when i turn on my vpn wg its up to 130ms.
But Youtube is not in my vpn allow list to use it. Its go for my main wan. I don't understand how fix this issue. Maybe some one know this problem?
What i do: dell all my ip in vpn list, and run it but latency is still 130ms.
When i use this vpn manually in my PC (its warp) latency is 18ms
Glinet Mt6000 FW 4.7.4| Adguard Home for DNS, Warp VPN
This is my traceroute log:
VPN is On:

Summary

root@DESKTOP-E2GAL44:~# traceroute youtube.com
traceroute to youtube.com (74.125.136.136), 30 hops max, 60 byte packets
1 DESKTOP-E2GAL44.mshome.net (172.24.64.1) 0.298 ms 0.291 ms 0.288 ms
2 console.gl-inet.com (192.168.10.1) 0.578 ms 0.562 ms 0.588 ms
3 10.32.0.1 (10.32.0.1) 2.133 ms 2.117 ms 2.094 ms
4 gateway.2mcl.com (193.0.240.1) 2.833 ms 2.817 ms 2.847 ms
5 72.14.214.148 (72.14.214.148) 5.002 ms 5.023 ms 4.979 ms
6 74.125.245.51 (74.125.245.51) 5.902 ms 5.953 ms 74.125.245.67 (74.125.245.67) 5.229 ms
7 74.125.245.86 (74.125.245.86) 8.042 ms 74.125.245.64 (74.125.245.64) 6.014 ms 74.125.245.84 (74.125.245.84) 5.177 ms
8 108.170.233.44 (108.170.233.44) 29.573 ms 142.251.239.40 (142.251.239.40) 29.443 ms 142.251.239.42 (142.251.239.42) 30.143 ms
9 209.85.252.77 (209.85.252.77) 31.683 ms 192.178.73.111 (192.178.73.111) 31.050 ms 216.239.40.147 (216.239.40.147) 30.693 ms
10 172.253.50.48 (172.253.50.48) 36.415 ms 192.178.75.172 (192.178.75.172) 36.416 ms 172.253.70.132 (172.253.70.132) 37.040 ms
11 192.178.80.239 (192.178.80.239) 109.985 ms * 192.178.80.229 (192.178.80.229) 119.557 ms
12 192.178.81.147 (192.178.81.147) 126.816 ms 72.14.239.89 (72.14.239.89) 126.802 ms 127.188 ms
13 * 172.253.68.50 (172.253.68.50) 132.696 ms *
14 172.253.72.117 (172.253.72.117) 132.669 ms 132.656 ms 142.251.51.108 (142.251.51.108) 132.271 ms
15 108.170.226.67 (108.170.226.67) 133.552 ms 209.85.247.91 (209.85.247.91) 133.856 ms 108.170.231.157 (108.170.231.157) 133.450 ms
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 yr-in-f136.1e100.net (74.125.136.136) 126.620 ms 125.937 ms 126.193 ms

VPN off:

Summary

root@DESKTOP-E2GAL44:~# traceroute youtube.com
traceroute to youtube.com (216.58.208.206), 30 hops max, 60 byte packets
1 DESKTOP-E2GAL44.mshome.net (172.24.64.1) 0.232 ms 0.344 ms 1.426 ms
2 console.gl-inet.com (192.168.10.1) 0.548 ms 0.536 ms 0.524 ms
3 10.32.0.1 (10.32.0.1) 2.151 ms 2.139 ms 2.128 ms
4 gateway.2mcl.com (193.0.240.1) 2.707 ms 2.691 ms 2.685 ms
5 72.14.214.148 (72.14.214.148) 4.956 ms 4.945 ms 5.265 ms
6 74.125.245.51 (74.125.245.51) 6.027 ms 74.125.245.67 (74.125.245.67) 5.546 ms 5.393 ms
7 74.125.245.84 (74.125.245.84) 5.380 ms 74.125.245.62 (74.125.245.62) 12.105 ms 74.125.245.64 (74.125.245.64) 14.545 ms
8 72.14.239.111 (72.14.239.111) 11.554 ms 142.251.242.35 (142.251.242.35) 18.646 ms 142.251.242.37 (142.251.242.37) 19.145 ms
9 209.85.255.199 (209.85.255.199) 19.134 ms 142.250.46.54 (142.250.46.54) 18.695 ms 192.178.99.173 (192.178.99.173) 18.689 ms
10 142.250.224.91 (142.250.224.91) 19.552 ms 192.178.99.173 (192.178.99.173) 18.412 ms 192.178.99.171 (192.178.99.171) 18.394 ms
11 par10s21-in-f206.1e100.net (216.58.208.206) 18.383 ms 18.274 ms 18.256 ms

When VPN is on (but youtube\google its not in vpn list) youtube go USA servers.
And when its off it put to France servers.
My vpn is not USA or France any way.

upd. in discord we found that this is DNS issue. When i use only google dns, YouTube traffic is go to near server France. But google dns is not best for me, i use other fester dns. So any way to route only youtube-google to google Dns? And use other from main dns upstream in adguard home.

The youtube server closest to the local area is in France or near France, which refers to the youtube.com go to WAN.

Confirm that youtube.com does not go to VPN, just go to WAN, you can remember this IP(s) in nslookup www.youtube.com when router disabled the VPN, and then fill them to the hosts list or ADG custom filter.

At this time, no matter what the DNS server is set, as long as you access the youtube domain name, these IPs will be given priority.

1 Like

Wow, it's the best solution, thanks!
On Discord, we found a workaround: using only Cloudflare and Quad9 DNS to trick Google's geolocation. It's not perfect, but at least it gives us a nearby European server with around 30ms latency.

Hmm, i'm add ip in host and in adguard custom filtering rules, but its any way swap youtube to other ip's that not in list...

VPN ON

Summary



Without VPN

Summary

upd hmm: i realize that i'm MTR different addresses: youtube.com in first case(vpn screen) and www.youtube.com in this case

Summary

With www.youtube.com ping with vpn is stay at 18ms and go to ip in list.
So its my inattention. :face_with_peeking_eye:
Do i need add youtube.com to this list or its not necessary?

Hello,

Thanks for your updates.

It seems that there is no need to add youtube to the list.
I think if youtube video/steaming is normal to play locally, there is no need to do this.

1 Like