XK0-005 · Question #90
XK0-005 Question #90: Real Exam Question with Answer & Explanation
The correct answer is A: iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -. To allow external access to a GitLab server, a firewall rule must be configured to permit incoming TCP traffic on the standard HTTP (port 80) and HTTPS (port 443) ports.
Question
A Linux administrator built a GitLab server. Later that day, a software engineer tried to access the server to upload the repository during the final step of installation. The software engineer could not access the website. Which of the following firewall rules would allow access to this site?
Options
- Aiptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -
- Biptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -
- Ciptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -
- Diptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -
Explanation
To allow external access to a GitLab server, a firewall rule must be configured to permit incoming TCP traffic on the standard HTTP (port 80) and HTTPS (port 443) ports.
Common mistakes.
- B. Without the full command for choice B, it is impossible to determine the specific technical reason it is wrong.
- C. Without the full command for choice C, it is impossible to determine the specific technical reason it is wrong.
- D. Without the full command for choice D, it is impossible to determine the specific technical reason it is wrong.
Concept tested. iptables firewall rules for web services
Reference. https://man7.org/linux/manpages/man8/iptables.8.html
Topics
Community Discussion
No community discussion yet for this question.