[olug] IPTables, Blacklist add multiple and range
Jay Hannah
jay at jays.net
Sat Jan 28 21:01:05 UTC 2006
Phil Brammer wrote:
> You can always use netmasking...
>
> In my iptables script, I use:
> -A FORWARD -s 69.50.160.0/19 -j LDROP
>
> That example will block 69.50.160.1 to 69.50.191.254, or 8,190 IP addresses. You can use a calculator at http://www.subnetmask.info/ or any other IP calculator sites on the 'net.
Ya. I'm partial to my little tool:
http://jays.net/cgi-bin/ipr.pl
HTH,
j
Omaha Perl Mongers: http://omaha.pm.org
great for writing little scripts to dump IPs into/out of text files :)
More information about the OLUG
mailing list