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-02-2004, 11:10 PM   #1
Wide glide
LQ Newbie
 
Registered: Jan 2003
Location: Venice Beach, Ca
Distribution: Debian, Fedora, Freebsd, Windows 95
Posts: 3

Rep: Reputation: 0
IP Table help, Droping entire 200 block of ip's?


Hi All

I need a little help with iptables.
I want to block all of the Brazil ip addresses, I understand they are in the 200 block.

Is this the correct way to block the 200?
Code:
iptables -A INPUT -s 200.* -j DROP

Any help greatly appreciated
 
Old 12-02-2004, 11:57 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
No, iptables doesn't accept wildcards. Try using the CIDR nomenclature instead:

iptables -A INPUT -s 200.0.0.0/8 -j DROP
 
Old 12-03-2004, 12:39 AM   #3
Wide glide
LQ Newbie
 
Registered: Jan 2003
Location: Venice Beach, Ca
Distribution: Debian, Fedora, Freebsd, Windows 95
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Sir
 
  


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
How do I block IP's to prevent unauthorized SSH login attempts? leofoxx Linux - Security 6 05-23-2005 09:36 PM
Way to update mysql table 200+ times at once macie Programming 7 04-13-2005 11:45 PM
get Squidguard to block entire countries web sites? Possible? Pcghost Linux - Software 3 09-19-2004 02:25 PM
Find IP's in use in a particular block kegwell Linux - Networking 1 07-14-2004 05:22 AM
how to block an entire IP range? enzo250gto Linux - Networking 2 05-01-2004 08:59 AM

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

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