Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
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
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 30m
Published
Clock icon Oct 18, 2019

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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans