- Update to Windows 10, version 2004
- Install the Windows Linux kernal and a Linux distro (these steps are tested with Ubuntu 20.04)
- Log in to your WSL distro and create the
/etc/wsl.conf
file with the following values:
[network]
generateHosts = false
generateResolvConf = false
[interop]
appendWindowsPath = false
- Create or replace the
/etc/resolv.conf
file with the following (or with your favorite public DNS nameservers, just not your Windows host):
nameserver 8.8.8.8
nameserver 8.8.4.4
- Open an Administrator instance of Powershell on your Windows host and run
wsl --shutdown
- Log back in to your WSL distro and verify network connectivity via
ping google.com
- Install and configure Openconnect UI on your Windows host
- Connect to your VPN with Openconnect
- Verify that your WSL distro still has network connectivity via
ping google.com