How to Install and Uninstall iptables Package on Debian 12 (Bookworm)

Last updated: November 07,2024

1. Install "iptables" package

Learn how to install iptables on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install iptables

2. Uninstall "iptables" package

This guide covers the steps necessary to uninstall iptables on Debian 12 (Bookworm):

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

3. Information about the iptables package on Debian 12 (Bookworm)

Package: iptables
Version: 1.8.9-2
Installed-Size: 2408
Maintainer: Debian Netfilter Packaging Team
Architecture: amd64
Replaces: iptables-nftables-compat (<< 1.6.2~)
Depends: libip4tc2 (= 1.8.9-2), libip6tc2 (= 1.8.9-2), libxtables12 (= 1.8.9-2), netbase (>= 6.0), libc6 (>= 2.34), libmnl0 (>= 1.0.3-4~), libnetfilter-conntrack3 (>= 1.0.6), libnfnetlink0 (>= 1.0.2), libnftnl11 (>= 1.1.5)
Recommends: nftables
Suggests: firewalld, kmod
Breaks: iptables-nftables-compat (<< 1.6.2~)
Description: administration tools for packet filtering and NAT
Description-md5: dc4b91f4ed9a9f9fb4896c64ab1f7992
Multi-Arch: foreign
Homepage: https://www.netfilter.org/
Tag: admin::configuring, implemented-in::c, interface::commandline,
network::firewall, protocol::ethernet, protocol::ip, protocol::tcp,
protocol::udp, role::program, role::shared-lib, scope::utility,
security::firewall, use::monitor, works-with::network-traffic
Section: net
Priority: optional
Filename: pool/main/i/iptables/iptables_1.8.9-2_amd64.deb
Size: 360192
MD5sum: 33613e9e4c6e917174b3b8a2ae2137cd
SHA256: 2928d3ca6ca8a3dc3f423f6752822b1f3614a5ba609ff7806bcba4449ffe90e1