Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Security
Google Cloud Platform icon
Labs

Performing Initial Firewall Configuration

In this lab, you will need to perform a few simple firewall configurations. These configurations include replacing all ports with services, adding the eth0 interface to the default zone, creating a firewalld service for flaskapp.py, changing the port of SSH service from 22 to 61613, and reloading firewalld to apply all the rules. By the end of the lab, it is important to not have any port definitions within the firewall configuration and to ensure that everything is defined with a service. The benefit of these services is that they have a name and a description by which you or anybody can know what the port is used for. Otherwise, you may find yourself in a situation where there are many opened ports and not know what the purpose of each port is. In order to be able to replace all ports with service, you first need to create a firewalld service for flaskapp.py. After that, you will need to change the port of SSH service from port 22 to port 61613. Finally, after all changes are made, you need to reload to apply all the rules.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 22, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a Firewalld Service for flaskapp: port 65535, Protocol tcp

    Note: Please provide the lab an extra 1-2 minutes before logging in to make sure the lab is fully provisioned. A local SSH terminal must be used for this lab (This lab cannot use the Instant Terminal). You will find the necessary login credentials on the lab page.

    1. Open and create the flaskapp.xml file.

    2. Populate the file with a definition of the flaskapp service, port, and protocol.

    3. Save and close the flaskapp.xml file.

    4. Add the flaskapp service.

    5. Reload firewalld.

  2. Challenge

    Edit SSH Firewalld Service and Reconfigure it for Port 61613
    1. Open the ssh.xml file.

    2. Populate the ssh.xml file with a description, and change the port from 22 to 61613.

    3. Save and close the ssh.xml file.

    4. Add SSH service.

    5. Reload firewalld.

  3. Challenge

    Add eth0 Interface to the Default Zone
    1. Add the eth0 interface to the public zone.

    2. Reload firewalld.

  4. Challenge

    Remove All Ports from Firewalld, Add http Firewalld Service, and Reload Firewalld
    1. Remove port 80/protocol tcp.

    2. Remove port 61613/protocol tcp.

    3. Remove port 65535/protocol tcp.

    4. Add http firewalld service.

    5. Reload firewalld.

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