How To Install iptables-nft.x86_64 on Amazon Linux 2

In this tutorial we learn how to install iptables-nft.x86_64 in Amazon Linux 2. iptables-nft.x86_64 is nftables compatibility for iptables, arptables and ebtables

Introduction

In this tutorial we learn how to install iptables-nft.x86_64 on Amazon Linux 2.

What is iptables-nft.x86_64

nftables compatibility for iptables, arptables and ebtables.

We can use yum to install iptables-nft.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install iptables-nft.x86_64.

Install iptables-nft.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install iptables-nft.x86_64 using yum by running the following command:

sudo yum -y install iptables-nft.x86_64

How To Uninstall iptables-nft.x86_64 on Amazon Linux 2

To uninstall only the iptables-nft.x86_64 package we can use the following command:

sudo yum remove iptables-nft.x86_64

iptables-nft.x86_64 Package Contents on Amazon Linux 2

/usr/libexec/arptables-helper
/usr/libexec/arptables-nft-helper
/usr/sbin/arptables
/usr/sbin/arptables-nft
/usr/sbin/arptables-nft-restore
/usr/sbin/arptables-nft-save
/usr/sbin/arptables-restore
/usr/sbin/arptables-save
/usr/sbin/ebtables
/usr/sbin/ebtables-nft
/usr/sbin/ebtables-nft-restore
/usr/sbin/ebtables-nft-save
/usr/sbin/ebtables-restore
/usr/sbin/ebtables-save
/usr/sbin/ip6tables
/usr/sbin/ip6tables-nft
/usr/sbin/ip6tables-nft-restore
/usr/sbin/ip6tables-nft-save
/usr/sbin/ip6tables-restore
/usr/sbin/ip6tables-restore-translate
/usr/sbin/ip6tables-save
/usr/sbin/ip6tables-translate
/usr/sbin/iptables
/usr/sbin/iptables-nft
/usr/sbin/iptables-nft-restore
/usr/sbin/iptables-nft-save
/usr/sbin/iptables-restore
/usr/sbin/iptables-restore-translate
/usr/sbin/iptables-save
/usr/sbin/iptables-translate
/usr/sbin/xtables-monitor
/usr/sbin/xtables-nft-multi
/usr/share/man/man8/arptables-nft-restore.8.gz
/usr/share/man/man8/arptables-nft-save.8.gz
/usr/share/man/man8/arptables-nft.8.gz
/usr/share/man/man8/arptables-restore.8.gz
/usr/share/man/man8/arptables-save.8.gz
/usr/share/man/man8/arptables.8.gz
/usr/share/man/man8/ebtables-nft.8.gz
/usr/share/man/man8/ebtables.8.gz
/usr/share/man/man8/xtables-monitor.8.gz
/usr/share/man/man8/xtables-nft.8.gz
/usr/share/man/man8/xtables-translate.8.gz

References

Summary

In this tutorial we learn how to install iptables-nft.x86_64 on Amazon Linux 2 using yum.