[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 18.104.22.168/19 -j LDROP
> That example will block 22.214.171.124 to 126.96.36.199, 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