{"repo":"sakai135/wsl-vpnkit","free":true,"listed":false,"github":"https://github.com/sakai135/wsl-vpnkit","clone":"git clone https://github.com/sakai135/wsl-vpnkit.git","description":"Provides network connectivity to WSL 2 when blocked by VPN","language":"Shell","stars":2945,"topics":["vpnkit","wsl2","wsl","vpn"],"license":"MIT","category":"networking-infra","readme_excerpt":"wsl-vpnkit wsl-vpnkit provides network connectivity for WSL 2 when your Windows VPN blocks access. It requires no changes to Windows settings or administrator privileges on the Windows host. For previous versions, see v0.3 and v0.2. Setup Before setting up wsl-vpnkit , try ping 1.2.3.4 inside WSL 2. If the ping succeeds, follow the steps in WSL has no network connectivity once connected to a VPN instead. WSL 2 networking options like mirrored mode and other .wslconfig options may resolve the issue as well. wsl-vpnkit is intended for cases where those options do not work. Option A: install wsl-vpnkit as a distro Download wsl-vpnkit-amd64.wsl (or wsl-vpnkit-arm64.wsl for ARM64) from the latest release and open it to import the distro into WSL 2. This option lets you start wsl-vpnkit even when your existing WSL distro has no network connectivity. Run the following command to start wsl-vpnkit in the foreground. Setup systemd You can optionally use systemd to start wsl-vpnkit when your WSL 2 distro starts. Create the service file in your existing WSL 2 distro and enable the service. Update To update, unregister the existing wsl-vpnkit distro and open the new wsl-vpnkit.wsl to import the new version. Option B: install as a standalone script The wsl-vpnkit script can be installed and run in your existing distro. The following is an example setup script for Ubuntu. Configuration Environment variables The wsl-vpnkit script supports the following environment variables. For the full lis","default_branch":null,"files":null,"tree":[],"storefront":"/r/sakai135","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sakai135/wsl-vpnkit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}