Author Topic: WSL is blocked by FW without any log record  (Read 4585 times)

Offline iyossi

  • Newbie
  • *
  • Posts: 2
WSL is blocked by FW without any log record
« on: June 01, 2020, 03:50:48 PM »
Hi,
I have installed WSL (Windows subsystem for Linux) and I am trying to ping 1.1.1.1 from linux but I am blocked by the FW. When I disable the FW - it's ok.
I don't see any event for it in the log, and I don't know how to unblock it.

Please help.

Yossi

Offline futuretech

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 5324
Re: WSL is blocked by FW without any log record
« Reply #1 on: June 02, 2020, 10:37:32 AM »
Need more info as it should work, what Windows version and CIS version are you using? And which version of WSL did you use 1 or the newer version 2?

Offline iyossi

  • Newbie
  • *
  • Posts: 2
Re: WSL is blocked by FW without any log record
« Reply #2 on: June 02, 2020, 01:39:48 PM »
Hi,
I have windows 10, version 2004 , with WSL 2.
Comodo firewall 12.0.0.6818.

Meantime I have found that ping doesn't work, but all the applications that connect to the internet- work.

Regards,
Yossi

Offline Sene

  • Newbie
  • *
  • Posts: 10
Comodo blocking wsl2 without notifications
« Reply #3 on: August 09, 2020, 11:02:03 AM »
Hi,

So I recently installed win10 2004 update (more specifically buil 19041.421) which allowed me to install wsl2 and over that a Kali image.

"Out of the box" the linux subsystem had no network connectivity at all, which I after I while traced back to comodo itself.

My Comodo product version is 12.0.6818.

So basically if I just run ping from the linux side, it doesn't work at all, I'm just getting a connection refused, and comodo stays quite even though I have all on verbose.

If I then set the firewall to training mode, everything works just fine.

If I leave the ping running when it works in training mode, and then set it back to safe mode or the custom ruleset, the ping keeps working, so "Established" under the same PID seems to work.

But as soon as I kill the ping and start it again, it won't work. So training mode doesn't add any rules it seems.

Under firewall events I don't see anything useful and indeed no notifications.

I tried to set the executables for the main kali process and child processes but that doesn't change anything.

So my question is now how can I make a custom rule to allow the connections and why on earth is Comodo not giving me any notifications?

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #4 on: August 09, 2020, 11:03:46 AM »
For me curl or apt won't work either. No notifications at all.

Offline futuretech

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 5324
Re: WSL is blocked by FW without any log record
« Reply #5 on: August 09, 2020, 12:40:54 PM »
Hi,

So I recently installed win10 2004 update (more specifically buil 19041.421) which allowed me to install wsl2 and over that a Kali image.

"Out of the box" the linux subsystem had no network connectivity at all, which I after I while traced back to comodo itself.

My Comodo product version is 12.0.6818.

So basically if I just run ping from the linux side, it doesn't work at all, I'm just getting a connection refused, and comodo stays quite even though I have all on verbose.

If I then set the firewall to training mode, everything works just fine.

If I leave the ping running when it works in training mode, and then set it back to safe mode or the custom ruleset, the ping keeps working, so "Established" under the same PID seems to work.

But as soon as I kill the ping and start it again, it won't work. So training mode doesn't add any rules it seems.

Under firewall events I don't see anything useful and indeed no notifications.

I tried to set the executables for the main kali process and child processes but that doesn't change anything.

So my question is now how can I make a custom rule to allow the connections and why on earth is Comodo not giving me any notifications?
I merged your topic with this existing one of the same issue. Try adding Windows Operating System to the firewall application rules and set it to outgoing ruleset. To add WOS you need use the running process option and add it from the running process window. Also make sure windows firewall is off for all 3 profiles but leave the windows firewall service running.

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #6 on: August 09, 2020, 03:01:31 PM »
Hi,

Thanks!

Windows firewall is off but the service is running.

I already had "Windows Operating System" entry under the application rules with allow all outgoing. Applied outgoing only to that rule now.

In the fw events log I see also quite some entries with empty application, action Asked, which never happened, direction out or 0, source and destination IPs at 0.0.0.0.

No clue if those are related but definitely not properly detected by Comodo.

So yeah, still no dice.

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #7 on: August 15, 2020, 10:17:54 AM »
Any other ideas regarding this? I like the comodo due to its verbosity but this is definitely an issue at the moment if no notifications are coming through but the traffic is still blocked.

Is there no debug mode for the firewall or some other way to get really low level logs?

Offline futuretech

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 5324
Re: WSL is blocked by FW without any log record
« Reply #8 on: August 19, 2020, 11:54:16 AM »
All I know is that WSLv1 works without issues, using WSLv2 only works up to version 12.0.0.6882 as newer CIS builds prevents the creation of the hyper-v virtual network adapter. That issue is supposedly going to be fixed in the next release, as for this issue I think a configuration conflict is causing the blockage. Maybe try using one of the default configs that hasn't been modified yet.

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #9 on: August 20, 2020, 11:08:33 AM »
I did try with safe mode too, that then uses a built-in ruleset or am I mistaken?

Offline futuretech

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 5324
Re: WSL is blocked by FW without any log record
« Reply #10 on: August 21, 2020, 10:02:22 AM »
No switch to one of the default configurations that you have not made changes to, i.e. switch to either the proactive, firewall, or internet security config. Just switch to a different config that is not currently set as the active configuration. Otherwise just wait for the next release to see if it fixes the issue.

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #11 on: August 28, 2020, 06:12:35 AM »
Wouldn't have a clue how would I change it :D I could only select from custom ruleset or safe mode for the firewall, don't know where to change what you described. But since then comodo started behanving badly with not showing popups at all so I just disabled the comodo firewall and went with tinywall, now everything works nicely, including wsl2.

Offline Sene

  • Newbie
  • *
  • Posts: 10
Re: WSL is blocked by FW without any log record
« Reply #12 on: August 29, 2020, 10:29:18 AM »
Btw even with the firewall set on disabled, I see this in the logs (see attachement).

And needless to say, nothing was "asked" like the log claims.

Offline freskas

  • Newbie
  • *
  • Posts: 1
Re: WSL is blocked by FW without any log record
« Reply #13 on: October 29, 2020, 04:52:35 PM »
Hi,
Just managed to overcome connectivity issues on my Windows 10 Ubuntu (WSL 2).

Altering the following setting:
Comodo -> Advanced Settings -> Firewall -> Global Rules -> Block IP in Any To MAC Any Where Protocol is Any
by excluding the vEthernet (WSL) from this rule (please see attached screenshot),
allowed sudo apt update to execute successfully.

Thought to share it in case it helps  :)

Offline Emad

  • Newbie
  • *
  • Posts: 7
Re: WSL is blocked by FW without any log record
« Reply #14 on: August 28, 2021, 01:25:01 PM »
Hi,
Just managed to overcome connectivity issues on my Windows 10 Ubuntu (WSL 2).

Altering the following setting:
Comodo -> Advanced Settings -> Firewall -> Global Rules -> Block IP in Any To MAC Any Where Protocol is Any
by excluding the vEthernet (WSL) from this rule (please see attached screenshot),
allowed sudo apt update to execute successfully.

Thought to share it in case it helps  :)

Thank you for this idea, but you have to exclude the mac address of the vEthernet (WSL) from the destination not from the source for your workaround to work.

 

Free Endpoint Protection
Seo4Smf 2.0 © SmfMod.Com Smf Destek