Lab Information
The Nautilus system admins team has rolled out a web UI application for their backup utility on the Nautilus backup server within the Stratos Datacenter. This application operates on port 5003, and firewalld is active on the server. To meet operational needs, the following requirements have been identified:
Allow all incoming connections on port 5003/tcp. Ensure the zone is set to public.
Lab Solutions
π§ Part 1: Lab Step-by-Step Guidelines
πΉ Step 1: Log in to Jump Host
ssh thor@jump_host.stratos.xfusioncorp.com
Password:
mjolnir123
πΉ Step 2: SSH into Backup Server
ssh clint@stbkp01.stratos.xfusioncorp.com
Password:
H@wk3y3
πΉ Step 3: Switch to root
sudo -i
π₯ Configure firewalld
πΉ Step 4: Ensure default zone is public
firewall-cmd --set-default-zone=public
πΉ Step 5: Allow port 5003/tcp permanently
firewall-cmd --zone=public --add-port=5003/tcp --permanent
πΉ Step 6: Reload firewall to apply changes
firewall-cmd --reload
πΉ Step 7: Verify port is open
firewall-cmd --zone=public --list-ports
πΉ Step 8: Verify active zone
firewall-cmd --get-default-zone
Expected output:
[root@stbkp01 ~]# firewall-cmd --set-default-zone=public
Warning: ZONE_ALREADY_SET: public
success
[root@stbkp01 ~]# firewall-cmd --zone=public --add-port=5003/tcp --permanent
success
[root@stbkp01 ~]# firewall-cmd --reload
success
[root@stbkp01 ~]# firewall-cmd --zone=public --list-ports
5003/tcp
[root@stbkp01 ~]# firewall-cmd --get-default-zone
public
β Final Checklist
β Default zone set to public
β Port 5003/tcp added permanently
β Firewall reloaded
β Port verified open
β Completed on Backup Server only
π§ Part 2: Simple Step-by-Step Explanation (Beginner Friendly)
πΉ What is happening?
A backup web UI runs on:
port 5003
But firewalld blocks incoming traffic by default.
We must allow traffic to that port.
πΉ What is a zone?
Firewalld uses zones like:
public
internal
trusted
The lab requires the zone to be:
public
πΉ Why use --permanent?
Without --permanent, changes disappear after reboot.
The lab expects persistent configuration.
πΉ Why reload?
After adding permanent rules:
firewall-cmd --reload
applies them immediately.
π Real-World Context
Opening specific ports is common when:
Deploying web apps
Exposing APIs
Enabling monitoring dashboards
Only required ports should be opened β never open all traffic.
Top comments (0)