CompTIA
XK0-006 · Question #110
A Linux administrator needs to add a new HTTP service on the server. Which of the following commands allows other systems to communicate with the service after the system is restarted?
The correct answer is C. firewall-cmd --add-service=http --permanent. This command adds the HTTP service to the firewall’s permanent configuration, ensuring the rule persists across system restarts and allows other systems to communicate with the service after
Security Best Practices
Question
A Linux administrator needs to add a new HTTP service on the server. Which of the following commands allows other systems to communicate with the service after the system is restarted?
Options
- Afirewall-cmd --add-service=http --reload
- Bfirewall-cmd --add-port=http --complete-reload
- Cfirewall-cmd --add-service=http --permanent
- Dfirewall-cmd --add-service=http
How the community answered
(28 responses)- B4% (1)
- C93% (26)
- D4% (1)
Explanation
This command adds the HTTP service to the firewall’s permanent configuration, ensuring the rule persists across system restarts and allows other systems to communicate with the service after
Topics
#firewalld#firewall-cmd#persistent rules#HTTP service
Community Discussion
No community discussion yet for this question.