Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Lisandro on April 09, 2016, 09:40:50 PM

Title: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on April 09, 2016, 09:40:50 PM
Avast is blocking the new bash Ubuntu on Windows 10 Preview.
Disabling the firewall, Ubuntu files can be updated and internet is available.

I cannot add C:\Windows\System32\conhost.exe or C:\Windows\System32\bash.exe into the app settings of the firewall (don't know why).

All my "other" firewall settings are "allowing" everything...
Seems like a "proxy" or "Friends" settings issue.

Please, help!
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on April 10, 2016, 01:31:21 PM
Thanks for reporting, we will look at this.

The whole unix subsystem is new in the windows world (last time we saw it was on NT4 with OS/2) we have to check what are the paths for packets from the new subsystem. Apparently they are different to the standard ones.

Thanks again, I will update you here.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Tim88 on April 11, 2016, 10:04:44 PM
Thanks for the pointer - I was able to add C:\Windows\System32\bash.exe allow all in/out as a packet rule which did the job for me.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on May 08, 2016, 10:25:42 PM
Bash on Ubuntu for Windows get a new update in last Windows Insider Preview 14332.
But Avast is still blocking it.
Lukas, can you get a look on this?
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on May 21, 2016, 11:50:52 PM
Bump  ???
Any news?
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: vbjay on August 03, 2016, 04:29:19 AM
Just installed win 10 upgrade and installed the linux subsystem.  I have tested and am sure it is your firewall blocking apt-get and other network traffic from the subshell. 
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 03, 2016, 06:32:19 PM
Thanks for the pointer - I was able to add C:\Windows\System32\bash.exe allow all in/out as a packet rule which did the job for me.
How did you do it? I'm also having the same issues and can't add it in application rules
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 04, 2016, 07:37:33 AM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 05, 2016, 02:12:39 AM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
You don't have to uninstall. Just pause the firewall while using bash. Of course, this is a workaround not a solution.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 05, 2016, 03:31:35 PM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
You don't have to uninstall. Just pause the firewall while using bash. Of course, this is a workaround not a solution.

I disagree. I am only using avast antivirus (not the firewall component) and just disabling it is not enough, it needs to be uninstalled.

(EDIT: I am using the latest version)
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 05, 2016, 05:21:06 PM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
You don't have to uninstall. Just pause the firewall while using bash. Of course, this is a workaround not a solution.

I disagree. I am only using avast antivirus (not the firewall component) and just disabling it is not enough, it needs to be uninstalled.

(EDIT: I am using the latest version)
Avast Free Antivírus should not block any connection, it's not a firewall. Besides, I'm using the Premier version and just disabling the firewall is enough.
Which firewall do you use?
Sometimes, the interaction between Avast and other product is bringing the error.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 05, 2016, 08:48:35 PM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
You don't have to uninstall. Just pause the firewall while using bash. Of course, this is a workaround not a solution.

I disagree. I am only using avast antivirus (not the firewall component) and just disabling it is not enough, it needs to be uninstalled.

(EDIT: I am using the latest version)
Avast Free Antivírus should not block any connection, it's not a firewall. Besides, I'm using the Premier version and just disabling the firewall is enough.
Which firewall do you use?
Sometimes, the interaction between Avast and other product is bringing the error.
.
Hi, thanks for your response. I dont think I am the only one having this problem. I am using Windows 10 Firewall Control, which is a wrapper on the native windows firewall.

It is also mentioned in these links:
https://github.com/Microsoft/BashOnWindows/issues/565
https://github.com/Microsoft/BashOnWindows/issues/718
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 05, 2016, 09:02:51 PM
Tarkio, can you be more specific on your problems? Do you also have problems with programs connecting to the network from inside WSL, such as wget, or do you have problems installing the subsystem (as mentioned on the links you've posted) ? Thanks.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 05, 2016, 10:55:14 PM
Tarkio, can you be more specific on your problems? Do you also have problems with programs connecting to the network from inside WSL, such as wget, or do you have problems installing the subsystem (as mentioned on the links you've posted) ? Thanks.

I cannot install the subsystem, it hangs after extracting the filesystem, as in the links I have posted. I tried that with avast disabled, but nothing changed. Same with another machine of the same configuration, but when I uninstalled avast free  I was able to install WSL. Unfortunately I will not have access to that machine for the next 2 weeks, if you need more details.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 06, 2016, 01:31:44 AM
Thanks a lot. Interesting as it goes well here with avast free on the box.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 06, 2016, 02:25:24 AM
Thanks a lot. Interesting as it goes well here with avast free on the box.
And Premium too, I have no issues installing/uninstalling bash.
My problem is on using "git" and "repo sync" commands.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 06, 2016, 01:00:28 PM
Same issue here, unable to extract the filesystem while Avast! Free is installed.

I uninstalled Avast! and let it finish installing, then re-installed Avast, however now it will not connect (Just gives me an empty terminal that I can type in and nothing happens).

Without Avast! Free installed it logs in and lets me correctly use the feature.

Note: Disabling the service or the shields is not enough. It has to be fully uninstalled.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 06, 2016, 04:26:52 PM
Ok, I surrender.
As I'm not using Avast Free I can't say why the Premier version is working and the Free one is not.
By the way, all this are workarounds, we really want a final solution to keep Avast on and use Ubuntu bash in Windows 10.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 06, 2016, 06:08:15 PM
I am running Avast Free 12.2.2276 on Windows 10 Anniversary Update and having the same problem as tarkio has - "lxrun /install" hangs on 'extracting filesystem'. Stopping the Avast service does not resolve the issue.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 07, 2016, 07:46:02 AM
Same problem in Avast IS 12.2.2276.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 10, 2016, 12:10:28 AM
Hello guys,
It seems we might have identified some problems with the WSL (UBUNTU) subsystem (beta) related to virtualization and Avast's aswvmm.sys driver. We are working on a fix at this moment. In the meantime I'd like to ask you for more info:

- those of you who have BASH/UBUNTU working, do you have any virtualization software installed (VmWare , Virtual Box, Hyper-V) ?
- those of you who have problems - could you try disabling virtualization in the BIOS to see if that helps?

Thanks.

I can also confirm issues with firewall and PICO/WSL processes. We are also working on a fix for this problem.

Thanks a lot for your patience.
Lukas.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 10, 2016, 03:50:07 AM
Bash is working on my machine with Avast Premier.
I have vmware which is installed
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 10, 2016, 03:52:10 PM
In the meantime I'd like to ask you for more info:
- those of you who have BASH/UBUNTU working, do you have any virtualization software installed (VmWare , Virtual Box, Hyper-V) ?
Virtualbox

- those of you who have problems - could you try disabling virtualization in the BIOS to see if that helps?
Last time I check, I cannot disable this option in the BIOS. I'm too lazy now to reboot :)
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: bob3160 on August 10, 2016, 04:06:08 PM
In the meantime I'd like to ask you for more info:
- those of you who have BASH/UBUNTU working, do you have any virtualization software installed (VmWare , Virtual Box, Hyper-V) ?
Virtualbox

- those of you who have problems - could you try disabling virtualization in the BIOS to see if that helps?
Last time I check, I cannot disable this option in the BIOS. I'm too lazy now to reboot :)
A post after you stop being lazy and have attempted the task would be a lot more helpful  :o
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 10, 2016, 04:44:30 PM
Hello guys, thanks for the info and help. We have managed to fix the firewall issue. WSL processes will no longer be blocked in the next beta however still without the possibility to fine tune the rules for each Unix process. That is very tricky for us at this moment.

I'll keep you updated about the installation bug as soon as I know more.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: GautamMKGarg on August 10, 2016, 10:48:06 PM
It has been confirmed on the official Microsoft's git repository that Avast causes the issue:

https://github.com/Microsoft/BashOnWindows/issues/718

Uninstalling Avast allows to run bash.
You don't have to uninstall. Just pause the firewall while using bash. Of course, this is a workaround not a solution.

I disagree. I am only using avast antivirus (not the firewall component) and just disabling it is not enough, it needs to be uninstalled.

(EDIT: I am using the latest version)
Avast Free Antivírus should not block any connection, it's not a firewall. Besides, I'm using the Premier version and just disabling the firewall is enough.
Which firewall do you use?
Sometimes, the interaction between Avast and other product is bringing the error.
I am using the free version of avast but still facing this issue.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 11, 2016, 02:53:59 AM
Thanks Lukas.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 12, 2016, 06:23:34 PM
Disabling Virtualization resulted in working bash, although bash was unable to connect to the internet.

As someone mentioned, I added "C:\Windows\System32\bash.exe allow all in/out as a packet rule", which now gives me a working (??? haven't tested everything) bash.

The connection is very slow on bash for some reason.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 15, 2016, 04:04:18 PM
I'm running avast premier in bootcamp attempting to use WSL too. I'm not sure about the virtualization option, but I know premier will block the bash process from working currently on my setup. Running on windows 10 anniversary.

Where would I be able to donwload the upcoming beta once it's released?
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 15, 2016, 10:31:27 PM
Hi, beta that is fixing both the installation problem and also the issue with Avast firewall blocking UBUNTU subsystem processes is already available here:

https://forum.avast.com/index.php?topic=179943.0

More info and change log:
https://forum.avast.com/index.php?topic=189694.0

Thanks for waiting!
Lukas.
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: Lisandro on August 17, 2016, 12:12:02 AM
Thanks. Testing...  ;)
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: REDACTED on August 17, 2016, 10:37:39 PM
Installed Avast Free AV 12.3.2279 and was finally able to get past the 'extracting filesystem' step. Set my user name and password and tried a few basic commands. Everything seems good so far. Thank you very much!
Title: Re: Avast firewall blocking Bash Ubuntu on Windows 10
Post by: lukor on August 17, 2016, 11:13:17 PM
Thanks iem for the confirmation. We are always anxious for the first reports from outside of our test labs.

thanks.
Lukas.