RHCSA Rapid Track
Performance Checklist
In this lab, you will configure a firewall on your serverX
system to block all access to services other than
ssh and a web server running on port
8080/TCP.
| Resources | |
|---|---|
| Machines: | serverX and desktopX |
Outcomes
A firewall configured on serverX blocking access to
services other than ssh and 8080/TCP.
Reset your
serverXsystem.Log into and set up your
serverXsystem.[student@serverX ~]$lab firewall setupReset your
desktopXsystem.
Your company has decided to run a new web app. This application
listens on ports 80/TCP and 8080/TCP. Due
to security considerations, only port 8080/TCP should be
reachable from the outside world. It is understood that
ssh (port 22/TCP) should also be
available. All changes you make should persist across a reboot.
Important: The graphical interface
used in the Red Hat Online Learning environment needs port
5900/TCP to remain available as well. This port is also
known under the service name vnc-server. If you
accidentally lock yourself out from your serverX, you can
either attempt to recover by using ssh to your
serverX machine from your desktopX machine, or
reset your serverX machine. If you elect to reset your
serverX machine, you will have to run the setup scripts for
this lab again. The configuration on your machines already includes a
custom zone called ROL that opens these ports.
When you are done with your work, reboot your serverX
machine, then run the command lab firewall
grade from your desktopX machine to verify your
work.
Configure your system so that the
iptablesandip6tablesservices will not be accidentally started by an administrator.Check if the
firewalldservice is running. If not, start it.Verify that the default firewall zone is set to
public.Verify that there are no unwanted ports open in the permanent configuration for the
publiczone.Add port
8080/TCPto the permanent configuration for thepubliczone. Verify your configuration.Reboot your
serverXmachine. (For a quick test, you can also use sudo firewall-cmd --reload.)From your
desktopXmachine, run lab firewall grade to verify your work.