You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue. I would agree with fpqc and try that first.
For the other question above, we've reached out to the Windows firewall team and 3rd party firewalls about adding support for WSL processes. No ETA on that support but we are actively tracking the issue.
fpqc I tried that and now it just hangs, so I added the entry for archive.ubuntu.com to /etc/hosts and now I get Cannot initiate the connection to archive.ubuntu.com:80 (91.189.88.161). - connect (13: Permission denied)
The actual issue is that there is still no way to add a rule for a pico process to windows firewall, and as Stephen Hufnagel (@stehufntdev) implies it seems they failed to make any progress on this since RS1.
@pnegry the driver API support for WSL processes were published in the creator's update so it will take the Windows firewall team and 3rd party firewalls time to update.
I have done everything in my power to try and get pico processes through my no inbound/only allowed outbound firewall and this is quite frustrating. I first mentioned this issue to an employee on reddit over a year ago and he said the fix was coming in the next release. Even adding source: ephemeral ports -> 192.168.1.1:53 for all processes (the only non process specific rule in my firewall - you forced my hand) does not work which is logged in my firewall log. An update of any kind would be appreciated.
The WSL team has been talking to the firewall team about this requirement, but, unfortunately there is no other update to provide at this time. We understand that this is a frustrating limitation, but, some of these dependencies are outside the immediate WSL team and we are working with the right set of teams to help them understand the scenario, requirement etc..Meanwhile, if you haven't upvoted the user voice ticket yet, then please do so. It helps us build the case.
optimisticninja - Punching a blank inbound rule for a port should work (I use it all the time). Can you describe what is that you are doing? What is your firewall setting? What is not working (what firewall logs are you referring to)? Which Windows build are you on (output of the ver command)?
These are logs from a frontend I use called Windows Firewall Control 5 (it has a feature that disables windows from creating firewall rules for store apps, etc. automatically). This is a day old installation, so it isn't configured yet via group policy. However - you can see the blocks here.
I was trying to only open the ephemeral range to port 53, but I didn't have luck doing this. I can only get WSL picos to work if I allow ALL outbound connections. Do you have a slightly stricter workaround for me in the meantime?
I am unable to setup firewal rules neither for WSL nor for native command line tools. After running following commands, all outbound connections is still allowed from cmd.exe, including ping google.sk.
Tomas Melicher (@aaronsvk) - Try with all lower case on the program name and see if that works. Something like C:\windows\system32\cmd.exe or c:\windows\system32\cmd.exe or %SystemRoot%\System32\cmd.exe ? You can also try the firewall UI.
As for WSL integration with firewall, that is coming soon, see the post above.
As far as firewall integration for native Windows tools, that is outside our direct team. I don't know if there is a direct support channel for the firewall. You can also try stackoverflow or other online support channels.
Biswapriyo Nath (@Biswa96) - There is no stock policy for WSL in firewall. The level of support for WSL processes in the firewall is the same as that for Windows processes. See the previous post for more details.
To be clear, WSL processes (pico) can be firewalled in 17627 and later, and will not be supported in the 1803 major release. So it'll probably be in 1809, coming out in October of this year.
Sunil Muthuswamy (@sunilmut) Just wondering, any chance when we list processes in task manager/firewall gui if the pico processes could have a nonblank icon? Sort of a cosmetic thing, but could be nice.
Hi guys, sorry to join the conversation so late. I had this issue with Kali using WSL and WFC. I edited my hosts file to include 192.99.200.113 http.kali.org. (yes, that's spelled right). This got me past the resolution issue, but still could not connect to kali.download on port 80.
I edited the blocked rules in WFC so that the connection would pass.
Activity
fpqc commentedon Apr 4, 2017
delete /etc/resolv.conf and retry
stehufntdev commentedon Apr 4, 2017
Thanks for reporting the issue. I would agree with fpqc and try that first.
For the other question above, we've reached out to the Windows firewall team and 3rd party firewalls about adding support for WSL processes. No ETA on that support but we are actively tracking the issue.
cartel0x27 commentedon Apr 4, 2017
fpqc I tried that and now it just hangs, so I added the entry for archive.ubuntu.com to /etc/hosts and now I get Cannot initiate the connection to archive.ubuntu.com:80 (91.189.88.161). - connect (13: Permission denied)
The actual issue is that there is still no way to add a rule for a pico process to windows firewall, and as Stephen Hufnagel (@stehufntdev) implies it seems they failed to make any progress on this since RS1.
stehufntdev commentedon Apr 5, 2017
@pnegry the driver API support for WSL processes were published in the creator's update so it will take the Windows firewall team and 3rd party firewalls time to update.
cartel0x27 commentedon Apr 5, 2017
Stephen Hufnagel (@stehufntdev) so the earliest we might expect support from windows firewall is RS3?
stehufntdev commentedon Apr 5, 2017
I wouldn't expect this change to make the servicing bar for the Creator's update, but that is ultimately the call of the Windows firewall team. It would help if you can give us feedback on the user voice page so we can track the number of requests to give other teams visibility into the impact - https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/..
rodalpho commentedon Oct 18, 2017
Whelp, didn't make RS3. Any ETA on this being fixed? I'm not going to disable my firewall when I can just spin up a VM.
ViRb3 commentedon Dec 6, 2017
Any updates? It's been quite a while now...
bfcns commentedon Dec 13, 2017
Still no update?
neuroretransmit commentedon Jan 19, 2018
I have done everything in my power to try and get pico processes through my no inbound/only allowed outbound firewall and this is quite frustrating. I first mentioned this issue to an employee on reddit over a year ago and he said the fix was coming in the next release. Even adding source: ephemeral ports -> 192.168.1.1:53 for all processes (the only non process specific rule in my firewall - you forced my hand) does not work which is logged in my firewall log. An update of any kind would be appreciated.
sunilmut commentedon Jan 19, 2018
The WSL team has been talking to the firewall team about this requirement, but, unfortunately there is no other update to provide at this time. We understand that this is a frustrating limitation, but, some of these dependencies are outside the immediate WSL team and we are working with the right set of teams to help them understand the scenario, requirement etc..Meanwhile, if you haven't upvoted the user voice ticket yet, then please do so. It helps us build the case.
optimisticninja - Punching a blank inbound rule for a port should work (I use it all the time). Can you describe what is that you are doing? What is your firewall setting? What is not working (what firewall logs are you referring to)? Which Windows build are you on (output of the
vercommand)?neuroretransmit commentedon Jan 19, 2018
These are logs from a frontend I use called Windows Firewall Control 5 (it has a feature that disables windows from creating firewall rules for store apps, etc. automatically). This is a day old installation, so it isn't configured yet via group policy. However - you can see the blocks here.
I was trying to only open the ephemeral range to port 53, but I didn't have luck doing this. I can only get WSL picos to work if I allow ALL outbound connections. Do you have a slightly stricter workaround for me in the meantime?
sunilmut commentedon Jan 19, 2018
UDP port 53? Are you trying to get DNS working for WSL processes? Can you also please answer the other questions I have posted before?
Additionally, can you share additional details of the "open the ephemeral range to port 53"? What does it look like?
15 remaining items
sunilmut commentedon Mar 9, 2018
fpqc - Windows is targeting two feature-releases a year. Check out the details section of this blog post.
aaronsvk commentedon Mar 10, 2018
I am unable to setup firewal rules neither for WSL nor for native command line tools. After running following commands, all outbound connections is still allowed from cmd.exe, including
ping google.sk.I can't understand, why is windows firewall incompatible with native windows tools.
sunilmut commentedon Mar 12, 2018
Tomas Melicher (@aaronsvk) - Try with all lower case on the program name and see if that works. Something like
C:\windows\system32\cmd.exeorc:\windows\system32\cmd.exeor%SystemRoot%\System32\cmd.exe? You can also try the firewall UI.As for WSL integration with firewall, that is coming soon, see the post above.
As far as firewall integration for native Windows tools, that is outside our direct team. I don't know if there is a direct support channel for the firewall. You can also try stackoverflow or other online support channels.
Brian-Perkins commentedon Mar 21, 2018
Better Windows firewall support is now live in the Skip-ahead 17627 build.
Biswa96 commentedon Mar 22, 2018
How to allow whole WSL system in firewall if all outbound and inbound connections are blocked?
sunilmut commentedon Mar 23, 2018
Biswapriyo Nath (@Biswa96) - There is no stock policy for WSL in firewall. The level of support for WSL processes in the firewall is the same as that for Windows processes. See the previous post for more details.
rodalpho commentedon Mar 23, 2018
To be clear, WSL processes (pico) can be firewalled in 17627 and later, and will not be supported in the 1803 major release. So it'll probably be in 1809, coming out in October of this year.
fpqc commentedon Mar 23, 2018
Sunil Muthuswamy (@sunilmut) Just wondering, any chance when we list processes in task manager/firewall gui if the pico processes could have a nonblank icon? Sort of a cosmetic thing, but could be nice.
sunilmut commentedon Mar 26, 2018
fpqc - Agreed that it would be a nice makeup. I will put it in the backlog. Not sure when we will get to it.
jerrdale commentedon Oct 28, 2018
Hi guys, sorry to join the conversation so late. I had this issue with Kali using WSL and WFC. I edited my hosts file to include 192.99.200.113 http.kali.org. (yes, that's spelled right). This got me past the resolution issue, but still could not connect to kali.download on port 80.
I edited the blocked rules in WFC so that the connection would pass.
Pico rules Partial policy 28.10.2018.zip
Basically, I edited the blocked rules in WFC to be ALL programs, not just Pico, and ALL ports on the originating protocol, left everything else alone.
Hope this helps..
aimlessadam commentedon Oct 28, 2018
rodalpho, did firewalling pico processes make it into 1809?
Thanks!
ljani commentedon Oct 28, 2018
aimlessadam Yes, it did. Thanks for the team!
aimlessadam commentedon Oct 28, 2018
Great! Thank you!