Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
Google Cloud Platform icon
Labs

Amazon Linux Network & Security Configuration

In this hands-on lab, you will harden an Amazon Linux 2023 EC2 instance running a simulated three-tier web application. You will configure `firewalld` zones to segment network traffic by tier, harden the SSH daemon, validate AWS Systems Manager Session Manager as a keyless administrative access method, and enforce SELinux policy by diagnosing AVC denials from a failing service and generating a custom policy module with `audit2allow`.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
May 12, 2026
Duration
1h 30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Configure firewalld zones and rules to secure network traffic for a three-tier web application
    • Inspect the default firewalld configuration and confirm the active zone bound to the primary network interface.
    • Apply service rules to the public zone for the web tier and a port rule to the internal zone for the application tier.
    • Create a database zone with a default DROP target and add a rich rule that allows traffic on port 3306 from the application subnet CIDR.
    • Verify rule effectiveness using firewall-cmd --list-all for each zone and test allowed traffic with nc and curl.
  2. Challenge

    Apply SSH hardening and validate AWS Systems Manager Session Manager as a keyless access method
    • Apply SSH hardening settings using a drop-in file under /etc/ssh/sshd_config.d/, validate syntax with sshd -t, and reload the service.
    • Confirm that amazon-ssm-agent is running and registered, then verify the SSM ping state to prove Session Manager is a viable replacement for inbound SSH.
    • Inspect the firewalld rule that would remove SSH from the public zone in production without applying the change in the lab.
  3. Challenge

    Configure SELinux in enforcing mode and use auditd to verify compliance and policy correctness
    • Switch SELinux to enforcing mode and persist the change in /etc/selinux/config.
    • Trigger the pre-staged httpd service configured to listen on port 8888 and locate the resulting name_bind AVC denials with ausearch.
    • Use audit2why to explain the denial cause and audit2allow -M lab_http to generate and compile a targeted custom policy module.
    • Install the module with semodule -i, confirm that httpd starts cleanly, and produce an aureport confirming that no unauthorized privilege escalation occurred.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight