iptables, aws, amazon linux 2,

Install Iptables on Amazon Linux 2

Dec 17, 2022 · 1 min read · Post a comment

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, input-output forward on a server level. So, let’s install iptables on Amazon Linux 2.


  • Amazon Linux 2
  • sudo privileges

Install Iptables on Amazon Linux 2

Step 1. Update the yum packages.

yum update

Step 2. Install iptables.

yum install iptables-services

Step 3. Enable and start the service.

systemctl enable iptables
systemctl start iptables

Step 4. Verify the installation.

iptables -v


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.