LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   iptables and hosts.allow (https://www.linuxquestions.org/questions/linux-security-4/iptables-and-hosts-allow-294760/)

bwreath 02-25-2005 11:04 AM

iptables and hosts.allow
 
Hi,

I would appreciate help with the following. I would like to know the relationship between iptables and the file hosts.allow and hosts.deny.

Previously, I just used iptables and my files hosts.allow and hosts.deny were empty. If I put an entry in the hosts.allow file does it take precedence over the iptables?

thanks!

Capt_Caveman 02-25-2005 02:19 PM

They have some overlapping features and it's a good idea to use both as a means of failure protection. To answer your question though, iptables functions occur before tcp_wrappers (host.allow/deny) and therefore take 'precedence' over anything in hosts.allow/deny.

bwreath 02-25-2005 03:43 PM

Capt_Caveman,

Thanks for the info!


All times are GMT -5. The time now is 01:46 AM.