How To Install iptables-services on Fedora 36
Introduction
In this tutorial we learn how to install iptables-services
on Fedora 36.
What is iptables-services
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
or dnf
to install iptables-services
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install iptables-services.
Install iptables-services on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install iptables-services
using dnf
by running the following command:
sudo dnf -y install iptables-services
Install iptables-services on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install iptables-services
using yum
by running the following command:
sudo yum -y install iptables-services
How To Uninstall iptables-services on Fedora 36
To uninstall only the iptables-services
package we can use the following command:
sudo dnf remove iptables-services
iptables-services Package Contents on Fedora 36
/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
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).