Author: @wushangwei
Source:
microsoft/WSL#5784 (comment)
I once had the opposite problem: WSL2 lost internet connection when connected to WIreGuard VPN.
I solved the problem by editing the "AllowedIPs“ field of WireGuard conf:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Address = 10.88.88.2/24
DNS = 1.1.1.1
[Peer]
PublicKey = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
PresharedKey = zzzzzzzzzzzzzzzzzzzzzzzzzzzzz
AllowedIPs = ::/128, 0.0.0.0/1, 128.0.0.0/1
Endpoint = xxx.xxx.xxx.xxx:xxxxx
Hope it will help you.