XK0-004 · Question #491
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…
The correct answer is E. /etc/hosts.deny. /etc/hosts.deny is the TCP wrappers configuration file used to block hosts from accessing services. Joe should review it to see if the office IP was added by the blocking solution.
Question
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?
Options
- Ajournalctl
- B/etc/ufw
- Cdmesg
- D/var/log/audit
- E/etc/hosts.deny
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C12% (3)
- E77% (20)
Why each option
/etc/hosts.deny is the TCP wrappers configuration file used to block hosts from accessing services. Joe should review it to see if the office IP was added by the blocking solution.
journalctl displays systemd journal logs and would show service events, but it does not contain the IP blocking rules themselves.
/etc/ufw is a directory for UFW firewall configuration files, not a file that lists individually blocked hosts in the TCP wrappers sense.
dmesg shows kernel ring buffer messages related to hardware and drivers, not IP blocking rules.
/var/log/audit contains Linux Audit Framework events and would not directly show TCP wrappers blocking rules.
TCP wrappers use /etc/hosts.deny to list hosts or networks that are denied access to wrapped services. An IP blocking solution leveraging TCP wrappers would write blocked addresses to this file. Reviewing /etc/hosts.deny lets Joe confirm whether the office desktop IP or subnet was inadvertently added, which would explain his inability to connect.
Concept tested: TCP wrappers hosts.deny IP blocking configuration
Source: https://linux.die.net/man/5/hosts_access
Topics
Community Discussion
No community discussion yet for this question.