OSP201 SPRING2024 SecureApache
OSP201 SPRING2024 SecureApache
Challenge
Install, Start, and Enable Apache Web Server
1. Install Apache web server:
sudo yum install httpd
2. Challenge
Install Start and Enable `firewalld`
1. Install firewalld:
sudo yum install firewalld
2. Start firewalld:
sudo systemctl start firewalld
3. Check the status of firewalld:
sudo systemctl status firewalld
4. Enable firewalld:
sudo systemctl enable firewalld
3. Challenge
Implement Permanent Firewall Rules to Allow Traffic on Ports 80 and 22
1. Open port 80:
sudo firewall-cmd --add-port=80/tcp --permanent
2. Open port 22:
sudo firewall-cmd --add-port=22/tcp --permanent
4. Challenge
Re-Log in via SSH to Confirm Your Firewall Configuration Is Correct and
Access the Web Server Default Page via the Browser
1. Log out and log back in via SSH:
exit
ssh cloud_user@<SERVER_PUBLIC_IP>