Blocking Ip Pool

Protecting your Linux box
Post Reply
Kamranalilakhnavi
Lance Naik
Posts: 25
Joined: Thu Mar 31, 2005 2:26 am

Blocking Ip Pool

Post by Kamranalilakhnavi »

Hello,

I want to block a whole ip pool with iptables, i know how to do this with APf.
Please let me know how can i do this by iptables with single command.


Thanks in advance
Regards,
Pasha
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: Blocking Ip Pool

Post by LinuxFreaK »

Dear Kamranalilakhnavi,
Salam,
Kamranalilakhnavi wrote:I want to block a whole ip pool with iptables, i know how to do this with APf. Please let me know how can i do this by iptables with single command.
# iptables -I INPUT -s 192.168.0.1/24 -j REJECT

in above example 192.168.0.0-192.168.0.255 IP Addresses are Rejected :)

Best Regards.
Farrukh Ahmed
Post Reply