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 01-01-2004, 05:21 PM   #1
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Rep: Reputation: 15
how to do this.. IPTABLES IP Range DROP


Hi All

I have search LQ and google and have not found an answer to this. I am using RH 9 and want to drop connections from a range of IPs'. For example, 61.32.0.0. - 61.43.255.255

How I could do this?, If there a script that could ask starting ip address and ending ip adrress and ADD all those iptables -I INPUT -s 61.32.0.0 -j DROP rules to the firewall? and the ask for the next range of IP addresses to be DROPED?

I believe it is not a complex script, however I am not a programmer so I need someone help...

Sorry, I am not A Linux expert and have found my iptables was not saved and DON'T want to enter one by one all Ip's I want to block...

TIA

Last edited by latino; 01-01-2004 at 05:25 PM.
 
Old 01-02-2004, 01:41 AM   #2
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
iptables -A FORWRD -t nat -s 61.31.0.0/24 -j REJECT -m state

some kind of that command i think so that i use like this command in reject icmp packets in my network

if this works plz inform me thanks
 
  


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
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 02:07 AM
iptables how drop ip address issin Linux - Networking 4 09-02-2004 06:45 AM
iptables DROP command mm_jth Linux - Security 5 11-07-2003 11:22 AM
iptables -> DROP -> CLAGGS geoffj Linux - Networking 12 03-23-2003 05:26 AM
WU-FTPD and IPTABLES DROP Policy Cpare Linux - Networking 0 10-23-2001 09:19 PM

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

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