I'm having exact problem. The solution proposed above worked for a while. But after I updated my AVG Internet Security to version 20.2.3116 (build 20.2.5130.571), WSL lost internet connection again when enhanced firewall is enabled. Any solution fpr this problem?
I am attempting to use WSL2 but all network connections are being blocked by the Enhanced Firewall. The only way I can get this to work is to disable the enhanced Firewall. I have the advanced firewall to 'Ask' for connections that don't already have rules, but I don't received any prompt to approve/deny any connection from WSL2.
How can I tell which rule is blocking my network access from WSL2?
Regards.
Rod
Hi Rod,
We're glad to look into this & help you.
Please let us know the operating system of your computer & what happens exactly while attempting to access WSL2 with AVG firewall enabled.
Do you receive any error message? If so, share us the screenshot of it for better clarity.
Thank you for the confirmation, Jhake.
We request you to get connected with our technical chat team using this https://support.avg.com/support_tech_chat link to get further assistance.
Here's the trick folks:
1. First, you have to add the WSL2 ssh binary to Windows Firewall, Control Panel>system and security> windows defender filrewall> allow apps
2. There's a catch, Windoze requires executables to have .exe at the end, so so the "allow apps" tool won't see the executable ssh without the .exe after it. We have to trick Allow Apps.
3. Depending on what you have installed, ssh is located hereabouts: c:\users\yourusernamehere\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76.....v4\LocalState\rootfs\user\bin\ssh
Locate the ssh directory yourself, or use the task manager with ssh running IN WSL, find ssh process in the list, context menu (right button for RHM), open file location.
3. Make a hard link in the same folder using wsl, cd to the directory above, create a hard link to the file
sudo ln ssh ssh.exe
4. Add ssh to "Allow App"
Note: It looks like AVG added Add App button, but their dialog has the same FAIL as Defender, it does not recognize linux binaries w/o the .exe extension tyranny
5. Now, in AVG settings, basic protections, Enhanced Firewall, View Firewall Rules, Application Rules, More, Filter, search for ssh
6. Add/Configure ssh rule per AVG instructions (Internet Out, Allow), default smart mode
Last step is a little vague, going from memory
Greetings,
Please check if you have updated AVG Internet Security to the latest version 20.4.
If you have experiencing it in the new version, I suggest you to create a new post in our community forum or reach our AVG Technical Support via live chat or call support. Click on the link and select 'Technical Support'.
https://support.avg.com/support_sales?l=en
Appreciate your efforts in sharing us the screenshot, Rod.
Sometimes, this might happen if few firewall settings are not modified. Please follow the below steps to modify & let us know if it helps :
Open AVG Internet Security - Menu - Settings - Full protection - Enhanced firewall - Enable Internet connection sharing mode by checking it.
Later click on system rules (in the same page) & enable 1st two options : Allow windows file & printer sharing, remote desktop connections.
If issue persists, try to change the network profile either to private or public.
Yes, everything is in place.
I'm having exact problem. The solution proposed above worked for a while. But after I updated my AVG Internet Security to version 20.2.3116 (build 20.2.5130.571), WSL lost internet connection again when enhanced firewall is enabled. Any solution fpr this problem?
Having the same problem. What's the fix?
Im using Windows 10 Pro, 19041.1
When I attempt to use apt in WSL I get the following error with the Enhanced Firewall On:
But with the enhanced firewall switched off this will complete normally.
ssh seems to impacted in the same way.
Hi Rod,
We're glad to look into this & help you.
Please let us know the operating system of your computer & what happens exactly while attempting to access WSL2 with AVG firewall enabled.
Do you receive any error message? If so, share us the screenshot of it for better clarity.
Having the same problem. What's the fix?