LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-24-2005, 08:51 AM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
Deny Domains


Hi all,

How can I set up my Fedora 3 box to deny domains? For example, I know I will never need a user accessing my box from France, China, Russia, etc... so I'd like to go ahead and deny the domain. Is this the hosts.deny file? What is the syntax of this file for mutiple domains?

Also, would it be better to deny them from the hosts.deny file or from an iptables rule?

Thanks for the help.
 
Old 12-24-2005, 03:56 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
iptables... AFAIK, you'd want to block the country's IP addresses, not the domains... cuz to block by domain you'd have to do reverse-DNS lookups which suck cuz they can take a lot of time and won't be accurate a lot of the time... using geoip with iptables should do the trick...

check-out this thread: http://www.linuxquestions.org/questi...d.php?t=360119

and this google: http://www.google.com/linux?&q=geoip+iptables
 
  


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
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
never_direct deny all vs. always_direct deny all simplyrahul Linux - General 1 02-16-2005 02:42 PM
ssh and /etc/hosts.all & deny tebucky Linux - Security 8 01-27-2005 05:23 PM
vsFTPd deny everyone. Why? TheTrueVortek Linux - Software 2 11-17-2003 12:02 PM
hosts.deny 98steve600 Linux - General 1 01-10-2001 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration