Which takes precedence: /etc/hosts.allow or firewalld?
7
votes
3
answers
1523
views
On a RHEL 7 server,
/etc/hosts.allow
has a number of IP addresses with full access. The firewall (confirmed with firewall-cmd
), there are no specific sources defined, and the default zone allows certain ports and services.
Which takes precedence? Or for a specific example, if an IP address listed in /etc/hosts.allow
tries to connect to the server using a port/service not allowed by the firewall rules, could it connect?
Asked by Jon Pennycook
(73 rep)
Jul 20, 2022, 08:53 AM
Last activity: Nov 21, 2024, 04:55 PM
Last activity: Nov 21, 2024, 04:55 PM