IPTables comes pre-installed in most Linux distributions. However, if you don’t have it in Ubuntu/Debian system by default, follow the steps below:
- Connect to your server via SSH.
- Execute the following command one by one:
apt update apt install iptables
You will now have the Linux firewall installed.