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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In