CompTIA
XK0-005 · Question #177
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked. Which of the following rules should be…
The correct answer is C. firewall-cmd --zone=public --add-port=80/tcp --permanent. https://firewalld.org/documentation/howto/open-a-port-or-service.html
Security
Question
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked. Which of the following rules should be added in the firewall to allow this type of connection?
Options
- Afirewall-cmd --zone=public --add-port=443/tcp --permanent
- Bfirewall-cmd --zone=internal --add-port=80/tcp --permanent
- Cfirewall-cmd --zone=public --add-port=80/tcp --permanent
- Dfirewall-cmd --zone=internal --add-port=443/tcp --permanent
How the community answered
(30 responses)- A17% (5)
- B3% (1)
- C70% (21)
- D10% (3)
Explanation
https://firewalld.org/documentation/howto/open-a-port-or-service.html
Topics
#Firewall management#Networking ports#firewalld#Linux security
Community Discussion
No community discussion yet for this question.