LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-15-2003, 09:16 AM   #1
egarnel
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Rep: Reputation: 0
hosts.deny question


This may seem like a silly question....


I know I can block at the domain level in hosts.deny

ALL: aol.com
ALL: evilhacker.net

but can I block a root level domain such as .cn, .za.... etc?

I don't see why not, but I can't seem to find any info to validate it.
 
Old 09-15-2003, 09:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
This will help: man 5 hosts_access

But to give you the short answer: yes you can.
 
Old 09-15-2003, 03:30 PM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You may want to consider putting "ALL:ALL" in your hosts.deny. If you read the man page for hosts.allow and hosts.deny, it say that if there is no match in either file then access is granted. For example, if you explicitly allow domain_a and explicitly deny domain_b, then domain_c is granted access. Using "ALL:ALL" is the catchall for what you do not explicitly allow.
 
  


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
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny help/how-to jon_k Linux - Software 1 07-25-2003 10:17 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
How to use hosts -.allow and -.deny? dragonflyer Linux - Newbie 2 05-28-2001 08:05 PM


All times are GMT -5. The time now is 09:04 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