You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure a Wireguard server
Setup a client in Windows without fulltunnel blockin (AllowedIPs = 0.0.0.0/1, 128.0.0.0/1)
Activate the tunnel
Start WSL2
run wget https://www.google.com
Expected Behavior
wget should connect to the server and download the page
Actual Behavior
After running wget, it can resolve the DNS but hangs on the connection to the server:
i faced the same issue, but then it's solved when i changed the DNS and allowedIPS as stated in #5784 (comment)
[Interface]
DNS = 1.1.1.1
[Peer]
AllowedIPs = ::/128, 0.0.0.0/1, 128.0.0.0/1
Hi! I feel king stupid right now... I was just about to type that I already tried those same steps without success, but then I realized that I didn't acctally tried applying those configs to the wg server. When I defined the DNS configuration on the server Interface I started reaching the internet from WSL while connected to the wireguard tunnel.
Solution above didn't work for me: I could ping things, but couldn't wget them.
What worked is sudo ip link set eth0 mtu 1420 in WSL2 (1420 taken from Wireguard entry in the output of netsh interface ipv4 show subinterface on the host). Taken from this post
Version
Microsoft Windows [Version 10.0.19044.1415]
WSL Version
Kernel Version
5.10.16.3
Distro Version
20.04
Other Software
Wireguard client version: 0.5.3
Wireguard driver version: 0.10.1
Wireguard server version: v1.0.20200513
Repro Steps
Configure a Wireguard server
Setup a client in Windows without fulltunnel blockin (
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1
)Activate the tunnel
Start WSL2
run wget https://www.google.com
Expected Behavior
wget should connect to the server and download the page
Actual Behavior
After running wget, it can resolve the DNS but hangs on the connection to the server:
Diagnostic Logs
Wireguard server config:
Wireguard client config:
Server
sysctl.conf
has IPv4 fowarding configured:I've tried many solutions proposed in other issues, but none of them changed the current behavior.
Some solutions I tryed:
edit resolv.conf file
update network interface metrics
change the wireguard client config to fulltunnel back and forth
Other issues seems to focus on DNS resolution. In my case, the DNS resolution from inside WLS2 works normally:
The text was updated successfully, but these errors were encountered: