I think you are trying to do the same thing I am working on. I have come to
the same conclusion. The company that I work for does not do business
outside the USA but we get pounded with SPAM and hacking attempts outside
the USA. I found the following page that defines the North American IP
address ranges:
http://www.arin.net/reference/ip_blocks.html#ipv4 .
For a test, for about a week, I have blocked all traffic into our routers
from Asia Pacific. I found those IP address ranges at:
http://www.apnic.net/db/ranges.html . It was amazing how much less SPAM we
received by just blocking those ranges.
My question is, how can I use iptables to define the list of ARIN IP
addresses as a whitelist? I have in mind something like:
iptables -A mybasicfilter -s ! $ARIN -j notallowed
I'm not sure how to define multiple ip ranges for the preceeding example.
If anyone has any ideas on how to implement this, I would appreciate it.
Thanks,
Rod
"Alan Jones" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Is there a list of all IP ranges, perhaps with masking, used in
> North America, Hawaii, and Alaska? Might it be better to just
> allow those networks rather than hassle with blocking the rest
> of the globe?
>
> Thanks