deanmcniven / wsl2-vpn-support

This Powershell script will reconfigure the system routes to fix WSL2 networking when on a VPN
45 stars 23 forks source link

script works for a few seconds and then doesn't #3

Closed dsusco closed 1 year ago

dsusco commented 2 years ago

Has anyone else encountered this? I start up my WSL (Debian), connect to the VPN, and can SSH from WSL for a few seconds, then get a "name or service not known". Ideas?

I should add, connecting via IP works no problem.

deanmcniven commented 1 year ago

This script will configure the network routes for the WSL instance, but you may need to configure the /etc/resolv.conf file to get name resolution working correctly in your environment

One test to confirm/deny is to attempt to curl/telnet etc to a fixed IP address, if that works its a name resolution issue, otherwise its likely routing (that this script attempts to fix)