Running nftables or firewalld on WSL does not work

Solution Verified - Updated -

Issue

  • Running a WSL RHEL image with firewalld or nftables enabled fails.
  • Configuration error with WSL RHEL machine
ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: No such file or directory

Environment

  • Red Hat Enterprise Linux 8
  • Windows Subsystem for Linux (WSL)
  • Firewalld with nftables backend, or nftables firewall

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