No internet with 3rd party AV/Firewall
Providing a place where people can report issues running 3rd party firewalls. For this, please report:
- Confirm your /etc/resolv.conf nameserver matches the DNS server in ipconfig /all.
- What AV/Firewall you're currently running (Bitdefender / Kaspersky / etc...).
- Steps you've tried to resolve the issue (i.e. turn off the firewall, set the network adapter as trusted, etc...)
We do know from thread #5 that many people with Bitdefender have discovered turning off their firewall and / or setting their network adapter as Trusted (which basically turns off the firewall for that adapter) allows for network connectivity.
Goal of this thread is to help inform us which configurations have issues and help us document any potential workarounds as well as find any bugs / fixes we may need to address.
I'm running on Norton 360 and everything seems to work so far. Was able to install and download stuff inside of Bash on Windows.
The only problems I have are more related to the overall network implementation on Bash on Windows. Things such as ifconfig doesn't work or at least display the current IP address. Many NodeJS thing try to be dynamic and try to read the current IP Adress configuration. This currently fails. Not sure if it is related to Firewall Issue or a general one. I think it is an general problem right now. I think it would help if you can talk directly to the network configuration or at least have a service that fake or mirror the network adapters.
Im using windows firewall and am trying to figure out where this new subsystem relates to configuring it. I hope we figure it out.. I might play around and try some things..
Using Norton security works but using Microsoft firewall (Microsoft Defender) stops all internet access in bash I carn't access apache2 or anything with Microsoft firewall.
I have BitDefender Endpoint Security (which apparently I cannot turn off, managed by ICT adminstrator) and it does not work. /etc/resolv.conf looks OK:
nameserver 8.8.4.4
nameserver 8.8.8.8
nameserver fec0:0:0:ffff::1
Running AVG Internet Security (16.81.7640), and I am unable to get any network connectivity. If I disable AVG's Firewall, I can use nslookup, and get a good response for microsoft.com. If I enable the firewall, nslookup fails with: socket.c:1915: internal_send: 75.75.75.75#53: Invalid argument I can see in my firewall logs that the application is blocking the exe's outbound connection. I tried explicitly adding the executable under %appdata%..\Local\lxss\rootfs\usr\bin\nslookup, but that didn't work.
- /etc/resolv.conf is fine
- Windows Firewall Control, which is just a friendly wrapper for the standard Windows Firewall.
- Disabling (in my case) outgoing blocking lets Bash work fine
I run my system where all outgoing connections are blocked until they are explicitly allowed, and a firewall rule is created,
However, can't seem to find a way to allow pico processes through Windows Firewall as an exception when everything else is blocked.
Faced a boat-load of problems installing and updating Lxss with Kaspersky Total Security (KTS) installed. Tried a lot of workarounds, including unblocking networks, ports, files and folders in KTS and installing and reinstalling the whole Subsystem about five times. Uninstalling KTS solved many of the network issues. I could finally install and update using apt-get and lxrun /update.
#640 #5
I'm using AVG Internet security and even if I'm in the trusted network and I've disabled every option on AVG ("turn off firewall until next reboot", etc.) I can't get commands such as apt-get to connect to the internet, I just get a general permission denied error. Nslookup seems to work when I disable the firewall, but nothing else - however - if I uninstall AVG then everything works as it should. I can apt-get and the like without any issue; so it's some sort of issue with the AVG interaction. Any suggestions?
Avast Internet Security blocks internet as well. All connections seem to just hang forever. Avast's logs show no blocked traffic, deactivating the Firewall resolves this.
Kaspersky also blocks most of outgoing connections, especially when using apt-get update / upgrade.
Uninstalling kaspersky works great, disabling it isn't enough.
+1 for broken with windows firewall. No way to create an outbound rule to allow. Disabling the firewall is not a solution.
My configuration is: outbound connections that do not match a rule are blocked.
Setting the adapter to Trusted in Bitdefender "works", but this can't be the long-term solution being proposed by Microsoft. There has to be some way to work with these vendors so that we can get WSL processes whitelisted by the firewall products so we don't have to disable a critical security feature to use basic networking in WSL.
@allquixotic You're right, this definitely isn't a long-term solution. Essentially the problem is that with WSL we've introduced a new type of process that these firewalls don't know how to handle. I've reached out to people at Kaspersky and will do the same for the Bitdefender folks so we can help them make the changes they'll need to enlighten their firewalls to our new type of process.
I am using Avast Internet Security, the logs show that it is blocking "System" because no rules found

Could it be a problem of a unsigned file? (That's what that red message mean)
Can note that this Firewall blockage block the correct installation too
@benhillis What is, or will there be. the right way to identify these processes in Windows Firewall?
I disable kaspersky firewall and windows firewall, and errors persists (No ping, apt-get with err connections, etc..). I need to remove Kaspersky?? :/
Ben,
Is there a way to transform the data into "process information" that those third party firewalls could understand natively? It might be counter productive to ask them to add an entirely new type. I could be wrong long term as Linux processes, and Windows obviously could Be treated very different...
Lol.. Windows defender is just as good as these firewalls these days. Most use Microsoft detours as their hooks as well.. Maybe not the major but the lower 90%... Oh well.
I think it could be relatively possibly to either in real time translate a connection to requesting attention from prior WSL firewalls either in real time or a linked list being updated? I'm not too sit considering it's closed source and I'm just observing from the outside in. I haven't had a chance to put pico processes under IDA pro.
Have a great week. Mike
Sent from my iPhone
On Aug 3, 2016, at 12:20 PM, Ben Hillis [email protected] wrote:
@allquixotic You're right, this definitely isn't a long-term solution. Essentially the problem is that with WSL we've introduced a new type of process that these firewalls don't know how to handle. I've reached out to people at Kaspersky and will do the same for the Bitdefender folks so we can help them make the changes they'll need to enlighten their firewalls to our new type of process.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Technically it is an unsigned file ;) never before has there been a system polling both file types, and applications together like this.. So it's viewing ELF files (even if somehow getting a hash) as unsigned...
Sent from my iPhone
On Aug 3, 2016, at 1:36 PM, Zatsune No Mokou [email protected] wrote:
I am using Avast Internet Security, the logs show that it is blocking "System" because no rules found
Could it be a problem of a unsigned file? (That's what that red message mean)
Can note that this Firewall blockage block the correct installation too
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@allanortiz : did you closed or just disabled Kaspersky? you need to fully close Kaspersky to make it work. Shutting down the Protection for limited Time doesn't work. Also turning of all the firewall services inside of kaspersky won't help. close Kaspersky and apt should work. no need to fully uninstall it
@degoya just disabled. Can't I work with bash shell having kaspersky activated?