LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to do this.. IPTABLES IP Range DROP (https://www.linuxquestions.org/questions/linux-security-4/how-to-do-this-iptables-ip-range-drop-130656/)

latino 01-01-2004 05:21 PM

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

netguy2000 01-02-2004 01:41 AM

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


All times are GMT -5. The time now is 09:37 PM.