How to convert iptables rules to nftables rules?

Solution Verified - Updated -

Issue

  • How do I convert my iptables rules to work with nftables?

Example of ssh traffic iptables rule

    -A INPUT -m state --state NEW -m tcp -p tcp --src 192.168.0.1 --dport 22 -j ACCEPT

Environment

Red Hat Enterprise Linux 8

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