How to Install and Uninstall iptables Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 07,2024

1. Install "iptables" package

In this section, we are going to explain the necessary steps to install iptables on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install iptables

2. Uninstall "iptables" package

Here is a brief guide to show you how to uninstall iptables on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the iptables package on Ubuntu 20.04 LTS (Focal Fossa)

Package: iptables
Architecture: amd64
Version: 1.8.4-3ubuntu2.1
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: 2639
Depends: libip4tc2 (= 1.8.4-3ubuntu2.1), libip6tc2 (= 1.8.4-3ubuntu2.1), libxtables12 (= 1.8.4-3ubuntu2.1), netbase (>= 6.0), libc6 (>= 2.29), libmnl0 (>= 1.0.3-4~), libnetfilter-conntrack3 (>= 1.0.7), 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.4-3ubuntu2.1_amd64.deb
Size: 390472
MD5sum: dfa2faeec47ee3c78b68683f95314b75
SHA1: 72a3149301599bfa994c594338448395cc6dc100
SHA256: 9bf5f8b3bda61cf00b40fe8b7bc9dd76d992f8524ef991720b9c4a38c767cb3a
SHA512: df5fdeb2f2732cca1838e2cee11ad2e4ca5d785d74b5073d913b5f01f6f695c245d3041746342875070d6437b8e07acd41c99ec1a1607e5b78dfefdf0f6e2c35
Homepage: https://www.netfilter.org/
Description: administration tools for packet filtering and NAT
Description-md5: 36afb86c9baa5ee22ce73b982a9e4bf0
Task: standard, ubuntu-core

Package: iptables
Architecture: amd64
Version: 1.8.4-3ubuntu2
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: 2639
Depends: libip4tc2 (= 1.8.4-3ubuntu2), libip6tc2 (= 1.8.4-3ubuntu2), libxtables12 (= 1.8.4-3ubuntu2), netbase (>= 6.0), libc6 (>= 2.29), libmnl0 (>= 1.0.3-4~), libnetfilter-conntrack3 (>= 1.0.7), 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.4-3ubuntu2_amd64.deb
Size: 390328
MD5sum: c32776e7c01397f7b15961ad6ae41b4e
SHA1: aae1567929d0bf523768e965cf618727e28a39a8
SHA256: 6ba39e76d54130ac42c391fc4ee6ec4c94a4a6ecf4b9343d2155eaa2aa750af6
Homepage: https://www.netfilter.org/
Description: administration tools for packet filtering and NAT
Description-md5: 36afb86c9baa5ee22ce73b982a9e4bf0
Task: standard, ubuntu-core