LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-12-2013, 09:41 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Banned Country IP Block List National Database


I am on a project in which I have been asked to create a script of some sort to block known banned ip blocks from banned countries (Iran, Syria, Cuba and etc.) Is there a National Database of some sort?

Last edited by metallica1973; 09-12-2013 at 09:51 AM.
 
Old 09-12-2013, 09:50 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by metallica1973 View Post
I am on a project in which I have been asked to create a script of some sort to block known banned ip blocks from banned countries (Iran, Syria, Cuba and etc.) Is there a National Database of some sort?
There are several companies that will do this kind of thing. However because of the way IP blocks are getting traded around these days you really get what you pay for, so free databases tend to be less accurate.

Try http://www.ipdeny.com as a start point for countries.

I've a bash script I use that downloads their country data then creates a file I use as an include in apache vhost definitions and restarts apache to activate the blocks.

Last edited by TenTenths; 09-12-2013 at 09:52 AM.
 
Old 09-12-2013, 10:00 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You could start at the link below:

http://www.treasury.gov/resource-cen.../Programs.aspx
 
Old 09-12-2013, 10:17 AM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Many thanks for the replies
 
Old 09-12-2013, 12:41 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
https://www.countryipblocks.net/
 
Old 09-12-2013, 07:59 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Might be easier to make an allow only list. Not however without some issues. A layer 7+ firewall may also help along with any and every other defense.

Last edited by jefro; 09-12-2013 at 08:00 PM.
 
  


Reply



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
How to Block Particular Country IP'S Using APF? anishkumarv Linux - Server 1 08-24-2011 10:25 AM
squid question (banned ip or block) hebeles Linux - Server 2 05-30-2011 05:02 AM
Apache BLOCK Country + Show Index for the Specific Country > How? skate Linux - Software 1 10-12-2009 07:08 AM
Block country's with hosts.deny narmida Linux - Security 7 03-02-2006 10:01 AM
List of Banned Sites swmok General 6 10-05-2004 04:42 PM

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

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

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