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?
If they all belong to one subnet block, you could try rewriting it in CIDR notation, else, a script that would iterate the IP values would be effective. -- Paolo Alexis Falcone [EMAIL PROTECTED] -- 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
