[olug] IPTables, Blacklist add multiple and range
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 126.96.36.199/19 -j LDROP
> That example will block 188.8.131.52 to 184.108.40.206, 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:
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