Skip to main content

Initial Firewall Configuration

Hands-On Lab

 

Photo of

Training Architect

Length

00:30:00

Difficulty

Intermediate

In this lab you will need to perform a few simple firewall configurations. These configurations include replacing all ports with services, adding interface ETH0 to the default zone, creating a firewalld service for flaskapp.py, changing the port of ssh service from 22 to 61613 and reloading to apply all the rules. By the end of the lab it is important to not have any port definitions within firewall configuration. Everything should be 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 will have a situation where there are many opened ports, and not know what each of them are for. First of all, in order to be able to replace all ports with service, you 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. After all changes are made you need to reload to apply all the rules.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.