Question: why iptables are used in linux?
Answer: iptables is a command line interface used to set up and maintain tables for the Netfilter firewall for IPv4, included in the Linux kernel. The firewall matches packets with rules defined in these tables and then takes the specified action on a possible match. ... Rule is condition used to match packet.