nerdexam
ExamsXK0-004Questions#177
CompTIA

XK0-004 · Question #177

XK0-004 Question #177: Real Exam Question with Answer & Explanation

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

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

Explanation

https://firewalld.org/documentation/howto/open-a-port-or-service.html

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice