Re: banning foreign Internet Providers
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Thu, 25 Jun 2009 14:39:17 -0500
On Wed, 24 Jun 2009, in the Usenet newsgroup alt.os.linux, in article
<3b990248-7daf-4039-a1ed-4666e9e3f8a1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Dave Kelly wrote:
NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.
In an effort to curtail the current spam attacks I was wondering if
I could ban all IPs and only allow those in a 200 mile radis.
HIGHLY unlikely. A slightly simpler solution is to "ban" everyone
by default, allowing only connections from specific white-listed
addresses or address ranges. Good luck.
Where do I go to find how the world is divided by IP regions?
It's not. See http://www.iana.org/assignments/ipv4-address-space
Google says you are posting from 71.2.179.68 which belongs to
Sprint DSL Networks. 71.0.0.0/8 is only _registered_ to entities
based in Canada and the USA - but what about... 64.0.0.0/8 or
66.0.0.0/8?
[compton ~]$ zgrep -h ' 64\.' IP.ADDR/stats/[ALR]* | cut -c1-2 |
sort -u | column
AU BS DO LS PR US
BB CA JP NO TT
[compton ~]$ ^64^66
zgrep -h ' 66\.' IP.ADDR/stats/[ALR]* | cut -c1-2 | sort -u | column
AR CA DO PR VI
BM CO JM US ZA
[compton ~]$
Know your ISO-3166 country codes? The other key to think about is
that word "registered". The company I work for is large, and if you
look at the whois data you'd see a New York state address - but if
you were to traceroute, the last addresses you'd see before the
black hole of our perimeter firewall are routers near San Francisco
about 2500 miles away - yet I'm near Phoenix, Arizona, and the subnet
either side of mine are in Japan and France. Register data has
nothing to do with the actual physical location of any/all addresses.
The five Regional Internet Registries noted on the web page above
have a total of 95997 IPv4 networks (and 3450 IPv6) in their databases
as of a week ago. Address blocks are not allocated/assigned on any
basis that makes blocking by country or even by region "easy".
Old guy
.
- References:
- banning foreign Internet Providers
- From: Dave Kelly
- banning foreign Internet Providers
- Prev by Date: Re: banning foreign Internet Providers
- Next by Date: Re: banning foreign Internet Providers
- Previous by thread: Re: banning foreign Internet Providers
- Next by thread: Re: banning foreign Internet Providers
- Index(es):
Relevant Pages
|