Linux+ Security: Implement Firewalls
In this lab, you’ll practice configuring two different firewalls for common use-cases, and will test the results. When you’re finished, you’ll have two hardened Linux systems that are configured using the principle of least privilege to allow only the access required for them to function in a corporate environment.
Terms and conditions apply.
Lab info
Lab author
Challenge
Get Started in the Lab Environment
Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!
Challenge
Activate UFW
To start the lab, you will learn how to check the status of the firewall UFW, enable it on a Linux system, and configure it using installed defaults.
Challenge
Configure an Apache Web Server using UFW Profiles
You will use UFW profiles to configure the allowed ports on a machine using the name of the application you want to run, in this instance Apache.
Challenge
Add, View, and Delete UFW Rules Manually
This challenge will teach you how to manually view rules, and configure them in UFW based on port number and IP Address.
Challenge
Enable FirewallD and Understand Zones
This challenge will have you enabling FirewallD, listing and modifying the current zones that are in use.
Challenge
Make Changes to FirewallD by Adding Services
You can automate the process of changing firewall rules by adding services to a zone. In this challenge, you will modify firewall rules by adding and removing services from your active zone.
Challenge
Manually Change FirewallD Rules
You will look at the syntax for manually adding firewall rules to FirewallD.
Challenge
The Last Challenge
Welcome to the final challenge! This is your last chance to experiment in the environment. Clicking Finish Lab will end this little world that flittered into existence just for you.
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.
Recommended prerequisites
- Understand how to navigate the Linux system via the command line
- A basic understanding of firewalls.
- Networking concepts, including ports, protocols, and IPs