Known VPN and Proxy Issues
There are a few known issues around WSL2 and Virtualbox VM compatibility with corporate VPNs and proxies.
DNS Configuration
This issue affects the ability of the VM to reach GitHub, clone repositories, run pip install
or open any websites from the browser.
If your machine was connected to a corporate VPN during setup, the Doman Name Server (DNS) lookup address is set to that of your corporate intranet. To reset it, open an ubuntu session and edit the resolv.conf
file
sudo nano /etc/resolv.conf
comment out existing nameserver address
add new line with
nameserver 8.8.8.8
save file and restart terminal
Proxy Server Configuration
This issue affects the ability of the server to run curl
and other commands addressing various localhost
ports
To fix this, add the NO_PROXY option by running in the Ubuntu command line
export NO_PROXY="localhost,127.0.0.1,local.home,*.yourcompany.org,*.yourintranet.org"
Note: Be sure to change the proxy URLs to those of your organization.