Re: Firewall - Limit Geographic Area

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Oct 2003 15:47:56 -0500
"lrnobs" <lrnobs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Does anyone know of a way to do this?  Are the IP ranges assigned to
> American networks published somewhere? 

Yes,  They are published in many places but one detailed list is 
available freely from:

http://ip-to-country.directi.com/

This is in a machine readable format with updates.   According to
this list there are over 6600 ranges of IP's assigned in the USA and 
about 170 in China for instance.  It's pretty easy to automate the
translation of this database into iptable rules.   As others have already
mentioned, you'll have to think carefully about how much benefit this
really provides and the problems it might cause.   

The database is more useful to customize web content based on the 
location of a visitor.   It might be better to use the data to redirect 
foreign visitors to a different page on your site which explains why
they probably won't find anything of interest.

Regards,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux