How To Install iptables-services.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install iptables-services.x86_64
on Amazon Linux 2.
What is iptables-services.x86_64
iptables services for IPv4 and IPv6 This package provides the services iptables and ip6tables that have been split out of the base package since they are not active by default anymore.
We can use yum
to install iptables-services.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-services.x86_64.
Install iptables-services.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-services.x86_64
using yum
by running the following command:
sudo yum -y install iptables-services.x86_64
How To Uninstall iptables-services.x86_64 on Amazon Linux 2
To uninstall only the iptables-services.x86_64
package we can use the following command:
sudo yum remove iptables-services.x86_64
iptables-services.x86_64 Package Contents on Amazon Linux 2
/etc/sysconfig/ip6tables
/etc/sysconfig/ip6tables-config
/etc/sysconfig/iptables
/etc/sysconfig/iptables-config
/usr/lib/systemd/system/ip6tables.service
/usr/lib/systemd/system/iptables.service
/usr/libexec/initscripts/legacy-actions/ip6tables
/usr/libexec/initscripts/legacy-actions/ip6tables/panic
/usr/libexec/initscripts/legacy-actions/ip6tables/save
/usr/libexec/initscripts/legacy-actions/iptables
/usr/libexec/initscripts/legacy-actions/iptables/panic
/usr/libexec/initscripts/legacy-actions/iptables/save
/usr/libexec/iptables
/usr/libexec/iptables/ip6tables.init
/usr/libexec/iptables/iptables.init
References
Summary
In this tutorial we learn how to install iptables-services.x86_64
on Amazon Linux 2 using yum.