How To Install nftables on Fedora 34
Introduction
In this tutorial we learn how to install nftables
on Fedora 34.
What is nftables
Netfilter Tables userspace utilities. nftables 1 0.9.8 2.fc34 x86_64 360 k nftables-0.9.8-2.fc34.src.rpm fedora Netfilter Tables userspace utillites https GPLv2 Netfilter Tables userspace utilities.
We can use yum
or dnf
to install nftables
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install nftables.
Install nftables on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install nftables
using dnf
by running the following command:
sudo dnf -y install nftables
Install nftables on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install nftables
using yum
by running the following command:
sudo yum -y install nftables
How To Uninstall nftables on Fedora 34
To uninstall only the nftables
package we can use the following command:
sudo dnf remove nftables
nftables Package Contents on Fedora 34
/etc/nftables
/etc/nftables/all-in-one.nft
/etc/nftables/arp-filter.nft
/etc/nftables/bridge-filter.nft
/etc/nftables/inet-filter.nft
/etc/nftables/inet-nat.nft
/etc/nftables/ipv4-filter.nft
/etc/nftables/ipv4-mangle.nft
/etc/nftables/ipv4-nat.nft
/etc/nftables/ipv4-raw.nft
/etc/nftables/ipv6-filter.nft
/etc/nftables/ipv6-mangle.nft
/etc/nftables/ipv6-nat.nft
/etc/nftables/ipv6-raw.nft
/etc/nftables/netdev-ingress.nft
/etc/nftables/osf
/etc/nftables/osf/pf.os
/etc/sysconfig/nftables.conf
/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/9add002ee672e8e6f4dcccfe52e25a912d4a6e
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/d7c1e5a8cc22d191edb65b6721ec5df74d0958
/usr/lib/systemd/system/nftables.service
/usr/lib64/libnftables.so.1
/usr/lib64/libnftables.so.1.0.0
/usr/sbin/nft
/usr/share/doc/nftables/examples/ct_helpers.nft
/usr/share/doc/nftables/examples/load_balancing.nft
/usr/share/doc/nftables/examples/secmark.nft
/usr/share/doc/nftables/examples/sets_and_maps.nft
/usr/share/licenses/nftables
/usr/share/licenses/nftables/COPYING
/usr/share/man/man5/libnftables-json.5.gz
/usr/share/man/man8/nft.8.gz
/etc/nftables
/etc/nftables/all-in-one.nft
/etc/nftables/arp-filter.nft
/etc/nftables/bridge-filter.nft
/etc/nftables/inet-filter.nft
/etc/nftables/inet-nat.nft
/etc/nftables/ipv4-filter.nft
/etc/nftables/ipv4-mangle.nft
/etc/nftables/ipv4-nat.nft
/etc/nftables/ipv4-raw.nft
/etc/nftables/ipv6-filter.nft
/etc/nftables/ipv6-mangle.nft
/etc/nftables/ipv6-nat.nft
/etc/nftables/ipv6-raw.nft
/etc/nftables/netdev-ingress.nft
/etc/nftables/osf
/etc/nftables/osf/pf.os
/etc/sysconfig/nftables.conf
/usr/lib/.build-id
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/0d21c1e40e51a8aa89df55e3fd4960f3405c43
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/dad257284539d0151b0e4ed3f3f712c2d3485a
/usr/lib/libnftables.so.1
/usr/lib/libnftables.so.1.0.0
/usr/lib/systemd/system/nftables.service
/usr/sbin/nft
/usr/share/doc/nftables/examples/ct_helpers.nft
/usr/share/doc/nftables/examples/load_balancing.nft
/usr/share/doc/nftables/examples/secmark.nft
/usr/share/doc/nftables/examples/sets_and_maps.nft
/usr/share/licenses/nftables
/usr/share/licenses/nftables/COPYING
/usr/share/man/man5/libnftables-json.5.gz
/usr/share/man/man8/nft.8.gz
References
- [nftables website](https://netfilter.org/projects/nftables/ https://netfilter.org/projects/nftables/)
Summary
In this tutorial we learn how to install nftables
on Fedora 34 using yum and dnf.