Wsl network settings for wifree3: הבדלים בין גרסאות בדף
| שורה 1: | שורה 1: | ||
{{עמוד בעברית|הגדרת רשת wsl לוויפרי3}} | {{עמוד בעברית|הגדרת רשת wsl לוויפרי3}} | ||
| + | <br> | ||
{{קישור אנגלית לתצוגת קריאה}} | {{קישור אנגלית לתצוגת קריאה}} | ||
<br> | <br> | ||
| − | When connected to the filter using the WiFree3 software, typically (with default WSL settings), internet access is unavailable in WSL. | + | When connected to the filter using the WiFree3 software, typically (with default WSL settings), internet access is unavailable in WSL.<br> |
| − | |||
| − | |||
| − | |||
| − | If you don’t have the WSL Settings software, here’s a manual guide (credit: grock) to configure it manually: | + | To try and resolve this issue, you can configure the network mode in WSL to virtioproxy.<br> |
| + | See [https://wiki.netfree.link/index.php?title=%D7%AA%D7%A7%D7%9C%D7%95%D7%AA_%D7%95%D7%A4%D7%AA%D7%A8%D7%95%D7%A0%D7%9F#.D7.90.D7.99.D7.9F_.D7.92.D7.99.D7.A9.D7.94_.D7.9C.D7.90.D7.99.D7.A0.D7.98.D7.A8.D7.A0.D7.98_.D7.91_wsl_.2B_wifree3 here] how to do it using the WSL Settings tool.<br> | ||
| + | If you don’t have the WSL Settings software, here’s a manual guide (credit: grock) to configure it manually:<br> | ||
| − | Prerequisites | + | '''Prerequisites'''<br> |
| − | Ensure you are using WSL 2, as virtioProxy is specific to WSL 2. | + | Ensure you are using WSL 2, as virtioProxy is specific to WSL 2.<br> |
| − | You need administrative privileges to modify WSL configuration files. | + | You need administrative privileges to modify WSL configuration files.<br> |
| − | Verify your WSL version by running wsl --version in a Windows Command Prompt or PowerShell. Ensure you have a recent version (e.g., WSL 2.0.14 or higher). | + | Verify your WSL version by running wsl --version in a Windows Command Prompt or PowerShell. Ensure you have a recent version (e.g., WSL 2.0.14 or higher).<br> |
| − | Back up any important data or configurations before making changes. | + | Back up any important data or configurations before making changes.<br> |
| − | Steps to Change Network Mode to virtioProxy | + | '''Steps to Change Network Mode to virtioProxy''' |
| − | Open or Create the .wslconfig File: | + | *Open or Create the .wslconfig File: |
The .wslconfig file is used to configure global WSL 2 settings and is located in your Windows user profile directory (%UserProfile%.wslconfig). | The .wslconfig file is used to configure global WSL 2 settings and is located in your Windows user profile directory (%UserProfile%.wslconfig). | ||
| − | Open a text editor (e.g., Notepad, VS Code) and navigate to C:\Users<YourUsername>.wslconfig. | + | *Open a text editor (e.g., Notepad, VS Code) and navigate to C:\Users<YourUsername>.wslconfig. |
If the file does not exist, create a new file named .wslconfig. | If the file does not exist, create a new file named .wslconfig. | ||
| − | Edit the .wslconfig File: | + | *Edit the .wslconfig File: |
Add or modify the following section in the .wslconfig file to set the networking mode to virtioProxy: | Add or modify the following section in the .wslconfig file to set the networking mode to virtioProxy: | ||
| − | + | [wsl2] | |
| − | [wsl2] | + | networkingMode=virtioProxy |
| − | networkingMode=virtioProxy | + | Save the file and close the text editor.<br> |
| − | Save the file and close the text editor. | + | '''Shut Down WSL:''' |
| − | Shut Down WSL: | ||
To apply the changes, you need to stop all running WSL instances. | To apply the changes, you need to stop all running WSL instances. | ||
Open a Command Prompt or PowerShell and run: | Open a Command Prompt or PowerShell and run: | ||
wsl --shutdown | wsl --shutdown | ||
| − | This ensures that the WSL engine fully stops and will respect the new configuration when restarted. | + | This ensures that the WSL engine fully stops and will respect the new configuration when restarted.<br> |
| − | + | ||
| − | + | '''Restarting WSL:'''<br> | |
| − | |||
| − | + | Restart WSL and check if the issue is resolved.<br> | |
| − | + | To verify that the setting has taken effect, run the following command:<br> | |
| − | |||
| − | |||
| − | wslinfo --networking-mode | + | wsl wslinfo --networking-mode |
| + | If the configuration was applied successfully, you should see virtioproxy as the result. | ||
גרסה מ־11:22, 5 ביוני 2025
לעברית לחצו כאן
To switch from edit view to read view
To search in the Wiki
When connected to the filter using the WiFree3 software, typically (with default WSL settings), internet access is unavailable in WSL.
To try and resolve this issue, you can configure the network mode in WSL to virtioproxy.
See here how to do it using the WSL Settings tool.
If you don’t have the WSL Settings software, here’s a manual guide (credit: grock) to configure it manually:
Prerequisites
Ensure you are using WSL 2, as virtioProxy is specific to WSL 2.
You need administrative privileges to modify WSL configuration files.
Verify your WSL version by running wsl --version in a Windows Command Prompt or PowerShell. Ensure you have a recent version (e.g., WSL 2.0.14 or higher).
Back up any important data or configurations before making changes.
Steps to Change Network Mode to virtioProxy
- Open or Create the .wslconfig File:
The .wslconfig file is used to configure global WSL 2 settings and is located in your Windows user profile directory (%UserProfile%.wslconfig).
- Open a text editor (e.g., Notepad, VS Code) and navigate to C:\Users<YourUsername>.wslconfig.
If the file does not exist, create a new file named .wslconfig.
- Edit the .wslconfig File:
Add or modify the following section in the .wslconfig file to set the networking mode to virtioProxy:
[wsl2] networkingMode=virtioProxy
Save the file and close the text editor.
Shut Down WSL:
To apply the changes, you need to stop all running WSL instances.
Open a Command Prompt or PowerShell and run:
wsl --shutdown
This ensures that the WSL engine fully stops and will respect the new configuration when restarted.
Restarting WSL:
Restart WSL and check if the issue is resolved.
To verify that the setting has taken effect, run the following command:
wsl wslinfo --networking-mode
If the configuration was applied successfully, you should see virtioproxy as the result.