Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-25-2005, 12:04 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
iptables and hosts.allow


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?

Old 02-25-2005, 03:19 PM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 65
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.
Old 02-25-2005, 04:43 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0

Thanks for the info!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables - Group Of Hosts xathras Linux - Security 1 04-01-2005 02:56 PM
iptables vs hosts.deny ryedunn Linux - Security 2 01-11-2005 07:56 PM
Iptables to block everything except few hosts sysadmcse Linux - Security 1 09-16-2003 10:48 PM
hosts.allow & iptables toddydog Linux - Networking 1 08-23-2003 12:09 PM
Using iptables and hosts.deny? Poetics Linux - Security 8 07-19-2003 03:31 PM

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration