Firewalld fails to load the ruleset with error message internal:0:0-0: Error: No such file or directory

Solution Verified - Updated -

Issue

  • The firewalld service starts and it's running, but there's no ruleset loaded and file /var/log/firewalld shows the following error message:

    ERROR: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: No such file or directory
    
  • The firewalld service starts and it's running, but there's no ruleset loaded and file /var/log/firewalld shows the following error message:

    ERROR: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Set member cannot be prefix, missing interval flag on declaration
    
  • After adding permanent entries to a ipset via firewall-cmd, running firewall-cmd --reload or systemctl restart firewalld doesn't work anymore and firewall rules are not loaded.

  • After adding a new service or icmp type to a zone, reloading firewalld fails.

Environment

  • Red Hat Enterprise Linux 8
  • firewalld

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content