How to Install and Uninstall iptables Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 15,2024

1. Install "iptables" package

This guide covers the steps necessary to install iptables on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install iptables

2. Uninstall "iptables" package

Please follow the instructions below to uninstall iptables on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove iptables $ sudo apt autoclean && sudo apt autoremove

3. Information about the iptables package on Ubuntu 21.04 (Hirsute Hippo)

Package: iptables
Architecture: amd64
Version: 1.8.7-1ubuntu2
Multi-Arch: foreign
Priority: standard
Section: net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Netfilter Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2836
Depends: libip4tc2 (= 1.8.7-1ubuntu2), libip6tc2 (= 1.8.7-1ubuntu2), libxtables12 (= 1.8.7-1ubuntu2), netbase (>= 6.0), libc6 (>= 2.33), libmnl0 (>= 1.0.3-4~), libnetfilter-conntrack3 (>= 1.0.6), libnfnetlink0, libnftnl11 (>= 1.1.5)
Suggests: firewalld, kmod, nftables
Breaks: iptables-nftables-compat (<< 1.6.2~)
Replaces: iptables-nftables-compat (<< 1.6.2~)
Filename: pool/main/i/iptables/iptables_1.8.7-1ubuntu2_amd64.deb
Size: 429576
MD5sum: 9b6cb489508bbd3ad2dd83ee9ea31b07
SHA1: bb4c856693ecbd7fea0cf3b5f84b1eb6d4e380ad
SHA256: 5113727781f5fc479c58baf939753ee6b7966294427ee538cca00cbdc738b573
SHA512: 4bf8f2ebd6a520cc53cc8cc666e8eaf2035a1c437f0c65150cc8825eed2e5ab05531b1680ce0a4bb807a0b2fa42bd5ecc3579ecb97cba77cee683dce1969fcbc
Homepage: https://www.netfilter.org/
Description-en: administration tools for packet filtering and NAT
The iptables/xtables framework has been replaced by nftables. You should
consider migrating now.
.
iptables is the userspace command line program used to configure
the Linux packet filtering and NAT ruleset. It is targeted towards systems
and networks administrators.
.
This package contains several different utilities, the most important ones:
.
iptables-nft, iptables-nft-save, iptables-nft-restore (nft-based version)
.
iptables-legacy, iptables-legacy-save, iptables-legacy-restore (legacy version)
.
ip6tables-nft, ip6tables-nft-save, ip6tables-nft-restore (nft-based version)
.
ip6tables-legacy, ip6tables-legacy-save, ip6tables-legacy-restore (legacy version)
.
arptables-nft, arptables-nft-save, arptables-nft-restore (nft-based version)
.
ebtables-nft, ebtables-nft-save, ebtables-nft-restore (nft-based version)
Description-md5: 36afb86c9baa5ee22ce73b982a9e4bf0
Task: standard