Skip to content

Adding firewall rules in Build 15063 #1852

Closed

Description

@cartel0x27

Starting a new issue cause this is a new build...

How does one add rules to windows firewall to permit Pico processes now?

Without a rule to permit processes I get:

Err http://archive.ubuntu.com trusty Release.gpg
Could not resolve 'archive.ubuntu.com'

Activity

  1. fpqc commented on Apr 4, 2017

    @fpqc

    delete /etc/resolv.conf and retry

  2. stehufntdev commented on Apr 4, 2017

    @stehufntdev

    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.

  3. cartel0x27 commented on Apr 4, 2017

    @cartel0x27
    Author

    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.

  4. stehufntdev commented on Apr 5, 2017

    @stehufntdev

    @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.

  5. cartel0x27 commented on Apr 5, 2017

    @cartel0x27
    Author

    Stephen Hufnagel (@stehufntdev) so the earliest we might expect support from windows firewall is RS3?

  6. stehufntdev commented on Apr 5, 2017

    @stehufntdev

    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/..

  7. rodalpho commented on Oct 18, 2017

    @rodalpho

    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.

  8. ViRb3 commented on Dec 6, 2017

    @ViRb3

    Any updates? It's been quite a while now...

  9. bfcns commented on Dec 13, 2017

    @bfcns

    Still no update?

  10. neuroretransmit commented on Jan 19, 2018

    @neuroretransmit

    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.

  11. sunilmut commented on Jan 19, 2018

    @sunilmut
    Member

    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)?

  12. neuroretransmit commented on Jan 19, 2018

    @neuroretransmit

    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.

    capture

    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?

  13. sunilmut commented on Jan 19, 2018

    @sunilmut
    Member

    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?

  14. 15 remaining items

  15. sunilmut commented on Mar 9, 2018

    @sunilmut
    Member

    fpqc - Windows is targeting two feature-releases a year. Check out the details section of this blog post.

  16. aaronsvk commented on Mar 10, 2018

    @aaronsvk

    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.

    netsh advfirewall firewall add rule name="CMD" program="C:\Windows\System32\cmd.exe" dir=out action=block
    netsh advfirewall firewall add rule name="PING" program="C:\Windows\System32\PING.EXE" dir=out action=block
    

    I can't understand, why is windows firewall incompatible with native windows tools.

  17. sunilmut commented on Mar 12, 2018

    @sunilmut
    Member

    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.

  18. Brian-Perkins commented on Mar 21, 2018

    @Brian-Perkins
    Contributor

    Better Windows firewall support is now live in the Skip-ahead 17627 build.

  19. Biswa96 commented on Mar 22, 2018

    @Biswa96

    How to allow whole WSL system in firewall if all outbound and inbound connections are blocked?

  20. sunilmut commented on Mar 23, 2018

    @sunilmut
    Member

    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.

  21. rodalpho commented on Mar 23, 2018

    @rodalpho

    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.

  22. fpqc commented on Mar 23, 2018

    @fpqc

    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.

  23. sunilmut commented on Mar 26, 2018

    @sunilmut
    Member

    fpqc - Agreed that it would be a nice makeup. I will put it in the backlog. Not sure when we will get to it.

  24. jerrdale commented on Oct 28, 2018

    @jerrdale

    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..

  25. aimlessadam commented on Oct 28, 2018

    @aimlessadam

    rodalpho, did firewalling pico processes make it into 1809?

    Thanks!

  26. ljani commented on Oct 28, 2018

    @ljani

    aimlessadam Yes, it did. Thanks for the team!

  27. aimlessadam commented on Oct 28, 2018

    @aimlessadam

    Great! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions