CompTIA
XK0-004 · 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 ad
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
(31 responses)- A3% (1)
- C94% (29)
- D3% (1)
Explanation
https://firewalld.org/documentation/howto/open-a-port-or-service.html
Topics
#firewall-cmd#HTTP#port 80#firewall zones
Community Discussion
No community discussion yet for this question.