Firewall firewalld not working

I installed firewalld but eveytime I lanch it says “failed to connect please make all services have started correctly” so how can I make it work ? or is there another firewall that I can Install

https://www.clearlinux.org/clear-linux-documentation/guides/network/firewall.html#firewalld

have you checked this out?

@Batmanxxx is right, firewalld doesn’t work on CL anymore. I have several systems where firewalld was running and none of them are running anymore.

As suggested I followed this:

But it didn’t fix it.

When trying to start firewalld manually:

sudo /usr/bin/firewalld --nofork --nopid $FIREWALLD_ARGS
Password: 
Traceback (most recent call last):
  File "/usr/bin/firewalld", line 293, in <module>
    main()
  File "/usr/bin/firewalld", line 287, in main
    startup(args)
  File "/usr/bin/firewalld", line 237, in startup
    from firewall.server import server
  File "/usr/lib/python3.12/site-packages/firewall/server/server.py", line 25, in <module>
    from firewall.server.firewalld import FirewallD
  File "/usr/lib/python3.12/site-packages/firewall/server/firewalld.py", line 15, in <module>
    from firewall.core.fw import Firewall
  File "/usr/lib/python3.12/site-packages/firewall/core/fw.py", line 18, in <module>
    from firewall.core import nftables
  File "/usr/lib/python3.12/site-packages/firewall/core/nftables.py", line 41, in <module>
    from nftables.nftables import Nftables
ModuleNotFoundError: No module named 'nftables'

The only message in the log is:

Nov 04 17:12:01 cl_sys_02 (irewalld)[3564]: firewalld.service: Referenced but unset environment variable evaluates to an empty string: FIREWALLD_ARGS
Nov 04 17:12:02 cl_sys_02 systemd[1]: firewalld.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 17:12:02 cl_sys_02 systemd[1]: firewalld.service: Failed with result 'exit-code'.
Nov 04 17:12:02 cl_sys_02 systemd[1]: Failed to start firewalld.service.

When searching for “firewalld.service: Referenced but unset environment variable evaluates to an empty string: FIREWALLD_ARGS” I get a result from NixOS, where the problem also occurred. They seem to have fixed it with this patch:

and this links to →

hksdpc255 has posted a temporary workaround on Github:

It helped to get my System running again.