LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-14-2006, 10:57 AM   #1
cachemonet
Member
 
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40

Rep: Reputation: 15
IPTABLES BLOCK ALL NON-US IP's


Lately I have been getting slammed with brute force attacks from overseas All of my valid clients are here in The States. I'd like to block all blocks outside of the US. I am having difficulty finding a good list of all world ip addresses. Due to the volume I'd like to allow all of the US blocks and then do an implicit deny. Does anyone have such a list? Any suggestions?
 
Old 06-14-2006, 11:25 AM   #2
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
You can create a block list and apply it to iptables to drop. The ony problem is there are so many ip ranges to keep up with it's nearly impossible to do.

Take a look at blackhole lists and check out SANS block list. It's a good start.
 
Old 06-14-2006, 04:02 PM   #3
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Pop!_OS && Windows 10 && Arch Linux
Posts: 831

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
http://www.google.com/search?hl=en&l...es&btnG=Search
http://people.netfilter.org/peejix/g...p-HOWTO-1.html

You need to patch kernel if you want to use this match.
 
Old 06-14-2006, 04:57 PM   #4
cachemonet
Member
 
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
Thats the stuff. Thanks. I looked at geoip but I did not see anything that was as easy as geoip match. I knew there had to be something out there. Thanks. Now i feel stupid for not finding it. My google-fu was weak today.
 
  


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
ways for close/block ports and/or ip's jamiguel77 Linux - Networking 2 03-11-2006 07:41 PM
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 01:23 PM
How do I block IP's to prevent unauthorized SSH login attempts? leofoxx Linux - Security 6 05-23-2005 10:36 PM
IP Table help, Droping entire 200 block of ip's? Wide glide Linux - Security 2 12-03-2004 01:39 AM
Find IP's in use in a particular block kegwell Linux - Networking 1 07-14-2004 06:22 AM

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

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