Skip to content

franckferman/fix_wsl2_networking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Stargazers License

banner-fix_wsl2_networking

fix_wsl2_networking

Solve connection problems related to WSL2.

📜 Table of Contents

Click to collapse/expand
  1. 📖 About
  2. 🎮 Getting Started
  3. 📜 License
  4. 📞 Contact

📖 About

This script provides a permanent fix for a persistent issue affecting WSL2 users on various Linux distributions, including Debian, Ubuntu, and Kali.

Many users attempt temporary configuration tweaks, only to find the problem recurring. This script eliminates the hassle by offering a reliable, long-term solution that works seamlessly.

If you've been struggling with this issue, or know someone who is, this script is the definitive fix you've been looking for.

Tested On

This script has been successfully tested on multiple WSL2 environments, including:

(back to top)

🎮 Getting Started

This repository is dedicated to fixing Internet connectivity issues in WSL2 when using a Linux distribution.

📌 Note: This guide does not cover WSL2 installation or setup—only the networking fix.

My goal is to provide a reliable and efficient solution to help WSL2 users restore network connectivity and optimize their workflow.

Prerequisites

Download the script directly via PowerShell:

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/franckferman/fix_wsl2_networking/stable/fix_wsl2_networking.sh" -OutFile "C:\Users\$env:UserName\fix_wsl2_networking.sh"

Usage

1️⃣ Move & execute the script from your Linux terminal in WSL2:

cd ~&&mv /mnt/c/Users/Your_Windows_UserName/fix_wsl2_networking.sh .&&chmod +x ./fix_wsl2_networking.sh&&sudo ./fix_wsl2_networking.sh

2️⃣ Once the script completes, your connectivity issues should be resolved.

(back to top)

📜 License

This project is licensed under the GNU Affero General Public License, Version 3.0. For more details, please refer to the LICENSE file in the repository: Read the license on GitHub

(back to top)

📞 Contact

ProtonMail LinkedIn

(back to top)