How to Install and Uninstall iptables Package on Debian 11 (Bullseye)

Last updated: November 07,2024

1. Install "iptables" package

Please follow the steps below to install iptables on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install iptables

2. Uninstall "iptables" package

Please follow the instructions below to uninstall iptables on Debian 11 (Bullseye):

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

3. Information about the iptables package on Debian 11 (Bullseye)

Package: iptables
Version: 1.8.7-1
Installed-Size: 2521
Maintainer: Debian Netfilter Packaging Team
Architecture: amd64
Replaces: iptables-nftables-compat (<< 1.6.2~)
Depends: libip4tc2 (= 1.8.7-1), libip6tc2 (= 1.8.7-1), libxtables12 (= 1.8.7-1), netbase (>= 6.0), libc6 (>= 2.29), libmnl0 (>= 1.0.3-4~), libnetfilter-conntrack3 (>= 1.0.8), libnfnetlink0, 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: 36afb86c9baa5ee22ce73b982a9e4bf0
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.7-1_amd64.deb
Size: 382420
MD5sum: 8ce22ece14224a70967e4e773826a9e4
SHA256: d3d90ea8ba3b371d02cc9483aa3e33851c4923854b786df60befc4ec67e5392d