How to Install iptables in Ubuntu 18.04



Install iptables by entering the following commands in the terminal:

sudo apt update
sudo apt install iptables

Description:

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

Homepage: http://www.netfilter.org/

Version: 1.6.1-2ubuntu2

Section: net