iptables-legacy

administration tools for packet filtering and NAT

Install

All systems
curl cmd.cat/iptables-legacy.sh
Debian Debian
apt-get install iptables
Ubuntu
apt-get install iptables
Alpine
apk add iptables
Arch Arch Linux
pacman -S iptables
image/svg+xml Kali Linux
apt-get install iptables
CentOS
yum install iptables
Fedora
dnf install iptables
Windows (WSL2)
sudo apt-get update sudo apt-get install iptables
Raspbian
apt-get install iptables
Docker
docker run cmd.cat/iptables-legacy iptables-legacy powered by Commando

iptables

administration tools for packet filtering and NAT

iptables is the userspace command line program used to configure the Linux packet filtering ruleset. It is targeted towards system administrators. Since Network Address Translation is also configured from the packet filter ruleset, iptables is used for this, too. The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter

iptables-nft

Linux kernel packet control tool (using nft interface)