Amazon Linux 2 & Firewalld

Another one for the Things To Remember category … after creating a new Amazon Linux 2 instance, it’s important to update firewalld to allow http & https traffic.

To do this, you need to use the firewall-cmd CLI command:

sudo firewall-cmd --zone=public --add-service=http --permanent
sudo firewall-cmd --zone=public --add-service=https --permanent
sudo firewall-cmd --reload

2 thoughts on “Amazon Linux 2 & Firewalld

Leave a Reply

Your email address will not be published. Required fields are marked *