nerdexam
CompTIACompTIA

XK0-005 · Question #177

XK0-005 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

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

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.

Full XK0-005 PracticeBrowse All XK0-005 Questions