<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>WIPmania blog posts (English)</title><link>http://www.wipmania.com/en/blog/</link><description>WorldIP - geolocation database, service and tools</description><language>en</language><lastBuildDate>Sun, 10 Apr 2011 00:00:00 -0500</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WipmaniaBlogPostsen" /><feedburner:info uri="wipmaniablogpostsen" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Nginx and Opera&amp;#39;s proxies
</title><link>http://feedproxy.google.com/~r/WipmaniaBlogPostsen/~3/f5xDVde4yXQ/</link><description>Opera browser users are able to go online through a special proxy server of the Opera. Also, &lt;a href="http://en.wikipedia.org/wiki/Opera_Mini"&gt;Opera Mini&lt;/a&gt; mobile customers use these servers.
&lt;br&gt;&lt;br&gt;
Of course, IP addresses belong to these servers, but they send header "X-Forwarded-For" with the real IP address of the user.
&lt;br&gt;&lt;br&gt;
The list of Opera's proxies is helpful to determine the real country.
&lt;br&gt;&lt;br&gt;
Opera runs data centers in Norway, Iceland, Poland, USA and China.
&lt;br&gt;&lt;br&gt;
Include file of proxies, then nginx automatically takes the real IP address, to determine the real country of the visitor.
&lt;br&gt;&lt;br&gt;
You can download always actual database of Opera's proxies here:&lt;br&gt;
&lt;a href="http://wipmania.com/static/worldip.opera.conf"&gt;http://wipmania.com/static/worldip.opera.conf&lt;/a&gt;
&lt;br&gt;&lt;br&gt;
Use in nginx:&lt;pre&gt;&lt;code&gt;
geo $country {
 default XX;
 include /etc/nginx/conf/worldip.opera.conf;
 include /etc/nginx/conf/worldip.conf;
}&lt;/code&gt;&lt;/pre&gt; (Article)&lt;img src="http://feeds.feedburner.com/~r/WipmaniaBlogPostsen/~4/f5xDVde4yXQ" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex(WIPmania team)</dc:creator><pubDate>Sun, 10 Apr 2011 00:00:00 -0500</pubDate><guid isPermaLink="false">http://www.wipmania.com/en/blog/opera-proxy-in-nginx/</guid><category>{'term': 'DataBase'}</category><category>{'term': 'nginx'}</category><category>{'term': 'Proxy'}</category><feedburner:origLink>http://www.wipmania.com/en/blog/opera-proxy-in-nginx/</feedburner:origLink></item><item><title>XX and routers in API
</title><link>http://feedproxy.google.com/~r/WipmaniaBlogPostsen/~3/VchBSLITufo/</link><description>XX is our code, the total value of which is "unknown". It includes:&lt;br&gt;
- the empty or unallocated space,&lt;br&gt;
- distributed, but unused networks,&lt;br&gt;
- internal and test networks (10.0.0.0/8, 127.0.0.0/8, etc.),&lt;br&gt;
- anycast (as an example - Google's DNS server 8.8.8.8),&lt;br&gt;
- the recently announced, but not yet distributed on the internet networks.&lt;br&gt;&lt;br&gt;

There is no detailed information about the location of routers in API database, (we see it as unnecessary for "normal" user). Instead the region (e.g.: EU, AP) or the country of global operator (e.g.: CA for Tata) will be displayed. (Article)&lt;img src="http://feeds.feedburner.com/~r/WipmaniaBlogPostsen/~4/VchBSLITufo" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nelli(WIPmania team)</dc:creator><pubDate>Thu, 10 Feb 2011 00:00:00 -0600</pubDate><guid isPermaLink="false">http://www.wipmania.com/en/blog/xx-and-routers-in-api/</guid><category>{'term': 'API'}</category><category>{'term': 'DataBase'}</category><category>{'term': 'traceroute'}</category><feedburner:origLink>http://www.wipmania.com/en/blog/xx-and-routers-in-api/</feedburner:origLink></item><item><title>Extended API
</title><link>http://feedproxy.google.com/~r/WipmaniaBlogPostsen/~3/xG3DtiJBFlg/</link><description>We have made some changes on our website.&lt;br&gt;
It is now possible to register your account.&lt;br&gt;&lt;br&gt;
If you are a registered user, you'll get a free daily statistic (distribution by time, countries and service codes) for your API-requests. It is important for detailed analysis of requests from different regions.
For a small fee, you can also choose the nearest API server and use any other as a backup (useful for increasing the uptime of your system).&lt;br&gt;&lt;br&gt;
The exchange rates option is also interesting, for displaying prices of goods or services to your customers in their usual form, that increases your website's conversion rate.&lt;br&gt;&lt;br&gt;
In addition to currencies, also available are languages of the countries, provider, phone codes and other data. &lt;a href="http://www.wipmania.com/en/api/"&gt;Read more on API&lt;/a&gt;. (News)&lt;img src="http://feeds.feedburner.com/~r/WipmaniaBlogPostsen/~4/xG3DtiJBFlg" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nelli(WIPmania team)</dc:creator><pubDate>Tue, 01 Feb 2011 00:00:00 -0600</pubDate><guid isPermaLink="false">http://www.wipmania.com/en/blog/extended-api/</guid><category>{'term': 'API'}</category><category>{'term': 'Company'}</category><feedburner:origLink>http://www.wipmania.com/en/blog/extended-api/</feedburner:origLink></item><item><title>Unlimited API queries
</title><link>http://feedproxy.google.com/~r/WipmaniaBlogPostsen/~3/DvGsef2_Rgg/</link><description>The limit of 10,000 API queries is canceled now. The daily number of queries and the number of queries per second are no more restricted. (News)&lt;img src="http://feeds.feedburner.com/~r/WipmaniaBlogPostsen/~4/DvGsef2_Rgg" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nelli(WIPmania team)</dc:creator><pubDate>Fri, 17 Sep 2010 00:00:00 -0500</pubDate><guid isPermaLink="false">http://www.wipmania.com/en/blog/unlimited-api/</guid><category>{'term': 'API'}</category><feedburner:origLink>http://www.wipmania.com/en/blog/unlimited-api/</feedburner:origLink></item><item><title>geoip for iptables
</title><link>http://feedproxy.google.com/~r/WipmaniaBlogPostsen/~3/5tjiu6STCEE/</link><description>In firewall it is possible to filter by country. It is very useful to block certain countries or to balance the requests to different backends, each of which handles its region.&lt;br&gt;&lt;br&gt;
Now &lt;a href="http://www.wipmania.com/en/base/"&gt;WorldIP database&lt;/a&gt; exists in the format for geoip module from the extension package &lt;a href="http://xtables-addons.sourceforge.net/"&gt;xtables-addons&lt;/a&gt; for iptables. Using this module, you can build more flexible rules for iptables, based on IP-geolocation.

&lt;div class="spisoknum"&gt;&lt;ul&gt;
&lt;li&gt;Installation of &lt;a href="http://xtables-addons.sourceforge.net/"&gt;xtables-addons&lt;/a&gt;:
The standard process of compilation and installation. Download the latest version (for iptables&gt;= 1.4.3) and extract.&lt;br&gt;
If you have an older version, e.g. in Lenny 1.4.2, and you do not want to update it, you should download xtables-addons v1.12.&lt;br&gt;
xtables-addons contains many interesting modules, as e.g. TARPIT. You may choose any modules in the file "mconfig". "build_geoip = m" should remain in config file, than the geoip will be compiled.&lt;br&gt;&lt;br&gt;
Install the necessary dependencies (for debian-based):
&lt;pre&gt;&lt;code&gt;aptitude -y install iptables-dev linux-headers-`uname -r`&lt;/code&gt;&lt;/pre&gt;
Than&lt;pre&gt;&lt;code&gt;./configure --with-xtlibdir=/lib/xtables
make
make install&lt;/code&gt;&lt;/pre&gt;Check, if the installation is successful:&lt;pre&gt;&lt;code&gt;iptables -m geoip --help&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Installation of the database for geoip&lt;br&gt;
Already prepared database can be downloaded &lt;a href="http://static.wipmania.com/static/worldip.iptables.tar.gz"&gt;here&lt;/a&gt;. The database should be placed in /var/geoip (this is hardcoded in the source code). The database can be updated with cron (e.g. once a month), so that it remains actual.&lt;br&gt;&lt;/li&gt;
&lt;li&gt;Examples&lt;div class="spisokbuk"&gt;&lt;ul&gt;&lt;li&gt;Allow ssh for own country(DE) and the country where you take holidays(FR)&lt;pre&gt;&lt;code&gt;iptables -A INPUT -p tcp --dport 22 -m geoip --src-cc DE,FR -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Block access to FTP server for Papua New Guinea (PG)
&lt;pre&gt;&lt;code&gt;iptables -A INPUT -p tcp --dport 21 -m geoip --src-cc PG -j DROP
iptables -A INPUT -p tcp --dport 21 -j ACCEPT&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Use separate marks for USA and the others, and send each type of traffic to its own destination&lt;pre&gt;&lt;code&gt;iptables -A INPUT -p tcp --dport 80 -m geoip --src-cc US -d &amp;#60;IP&amp;#62; -j MARK --set-mark 1
iptables -A INPUT -p tcp --dport 80 -m geoip ! --src-cc US -d &amp;#60;IP&amp;#62; -j MARK --set-mark 2&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt; (Article)&lt;img src="http://feeds.feedburner.com/~r/WipmaniaBlogPostsen/~4/5tjiu6STCEE" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex(WIPmania team)</dc:creator><pubDate>Fri, 05 Mar 2010 00:00:00 -0600</pubDate><guid isPermaLink="false">http://www.wipmania.com/en/blog/geoip-for-iptables/</guid><category>{'term': 'DataBase'}</category><category>{'term': 'iptables'}</category><category>{'term': 'tools'}</category><feedburner:origLink>http://www.wipmania.com/en/blog/geoip-for-iptables/</feedburner:origLink></item></channel></rss>
