CompTIA Linux+ (XK0-004) — Question 229
Joe, a Linux administrator implemented an IP blocking solution to secure a server, but he is now unable to connect to the server from the office.
Which of the following should Joe review to determine if the office desktop was blocked by this solution?
Answer options
- A. journalctl
- B. /etc/ufw
- C. dmesg
- D. /var/log/audit
- E. /etc/hosts.deny
Correct answer: E
Explanation
The correct answer is /etc/hosts.deny, as this file is specifically used to block access from certain IP addresses. The other options either do not directly relate to IP blocking (like journalctl and dmesg) or are related to firewall rules but do not provide specific IP blocking information (like /etc/ufw and /var/log/audit).