If however you don't want to go down to the nitty-gritty of iptables
and want a helper script, I would like to suggest gShield-2.8. You can
define a lot of things in its conf directory, blocked ips included.
Mhac

On Tue, 30 Nov 2004 17:18:49 +0800, nhadie ramos <[EMAIL PROTECTED]> wrote:
> you can try this on your script
> 
> for ((IPS=100;IPS<150;IPS++))
> do
>         iptables -A INPUT -s 192.168.1.$IPS -j DROP
> done
> 
> HTH
> 
> 
> 
> On Tue, 30 Nov 2004 08:31:52 +0700, Ramil Galib <[EMAIL PROTECTED]> wrote:
> > hi guys,
> > hope you can help me with this
> > i want to block a range of ip addresses
> > if it is only a single ip, i'm using
> > iptables -i input -s 192.168.1.100 -j drop
> > how do i specify the range, say 192.168.1.100 to 192.168.1.150
> > do i have to write individual ips?
> > Thanks!
> >
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to