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

Notices

Reply
 
Search this Thread
Old 02-25-2005, 11:04 AM   #1
bwreath
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
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!
 
Old 02-25-2005, 02:19 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
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, 03:43 PM   #3
bwreath
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Capt_Caveman,

Thanks for the info!
 
  


Reply


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 01:56 PM
iptables vs hosts.deny ryedunn Linux - Security 2 01-11-2005 06:56 PM
Iptables to block everything except few hosts sysadmcse Linux - Security 1 09-16-2003 09:48 PM
hosts.allow & iptables toddydog Linux - Networking 1 08-23-2003 11:09 AM
Using iptables and hosts.deny? Poetics Linux - Security 8 07-19-2003 02:31 PM


All times are GMT -5. The time now is 11:43 PM.

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