You can user IP2Country database, a CSV file with IP ranges (decimal) by country.
Google for "ip2country database". Use your imagination to apply the data to iptables. :-) I'd use mysql and php. HTH, Pedro -----Original Message----- From: Matthew Stringer [mailto:[EMAIL PROTECTED] Sent: terça-feira, 27 de Fevereiro de 2007 11:04 To: [email protected] Subject: [opensuse] Blocking foreigners! Is it possible to configure IPTables to only allow connections from a particular country? Is there an online list of all the subnets used in each country? I have a webserver which I only want UK residents accessing but I've not been able to determine a complete list of IP's If I just blocked all non-RIPE addresses that would restrict me to Europe only but there doesn't seem to be a list per country, does that mean they're all mixed up? Regards Matthew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
