How to replace firewalld direct rules with nftables?

Solution Verified - Updated -

Issue

  • What is the replacement for firewall direct rules?
  • firewalld considers the direct rule syntax to be deprecated, what do I do for firewall rules which firewalld cannot support?
  • How to convert firewalld direct rules to nftables?

Environment

  • Red Hat Enterprise Linux 9.5 and later
  • firewalld firewall with direct rules

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