Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geoip]

The tag has no usage guidance.

0
votes
0answers
55 views

Nginx + Geoip How retrieve the country code on the 2nd server

[EDIT] it's good everything works I did not put the elements in the right places *I use a translator Hello everyone, I have 2 servers with nginx + geoip On the first server (Switzerland) from the ...
0
votes
1answer
29 views

GeoIP Split DNS Wrong 3rd View on Slave

Successfully configured Bind to host multiple views with TSIG with this guide. Problem is when I add a third view to the mix, things get weird. On each server, I have 3 views right now: USA Europe ...
3
votes
0answers
173 views

GeoIP vs IPset performance in iptables

I would like to ask you what is faster in term of performance GeoIP or IPset. Let me explain, imagine that I have rule: iptables -A INPUT -m geoip ! --src-cc US,UK,CA -j DROP And imagine that I ...
0
votes
1answer
114 views

GeoIP Apache Mod Whitelist by Country and Local Network

I've been having issues with attempted hackers trying to break into my web server so I decided to block traffic from everywhere except my target countries: US, France, and Germany. I installed the ...
0
votes
1answer
183 views

Is there any limitations in using GeoIP with bind9

I have a DNS server (BIND 9.10.3-P4-Ubuntu) on an Ubuntu 16.04 machine. I have a domain with two A records (IP1,IP2) which indicates to two separate web servers (Wserver1, Wserver2). I want the DNS ...
0
votes
1answer
73 views

Why GCP Kubernetes Node host location for europe-north1 seems to be in US?

I am new to both Google Cloud Platform and K8s. I have launched Kubernetes cluster in GCP and chosen europe-north1 as the region (europe-north1-a as the zone). When I try to run my application on ...
0
votes
0answers
31 views

debian, lighttpd: GeoIP, Some variables are not working

I upgraded lighttpd to stretch and I installed for my curiosity lighttpd_mod_GeoIP, I configured the module ... server.modules = ( " ... mod_geoip, ... ") geoip.db-filename = "/usr/share/...
0
votes
0answers
244 views

Iptables geoip filter not working on Openwrt

hopefully i can get some help here.So i’ve setup the iptables geoip setup based on this: https://tokyobreeze.wordpress.com/2015/01/30/block-incoming-connection-from-all-ip-of-a-country-in-router/ The ...
0
votes
1answer
426 views

GEOIP redirect with https

server{ listen 80; listen [::]:80; server_name 111.111.111.111 example.com www.example.com; return 301 https://example.com$request_uri; } I have not installed any extra NGINX ...
0
votes
1answer
474 views

Cannot set GeoIP rules in iptables

I try to add this rule: iptables -A INPUT -m geoip ! --src-cc CZ,SK -j DROP I set GeoIP support according to this answer: Ubuntu IPTables allow only allow 1 country | Super User But it doesn't work,...
1
vote
1answer
507 views

GeoIP: Redirect all but specific countries

I am using Apache's GeoIP module and a MaxMind database to determine the country of a visitor based on their IP address and redirecting them to a country sub-folder as shown below: RewriteCond %{ENV:...
0
votes
0answers
123 views

How make GeoIP base by myself for PowerDNS?

I want to setting PowerDNS with geoip-backend that sample in order to repeat similar Split DNS mechanism how in Bind9. And I think I can use geoip for it. But I don't know how I can make GeoIP base by ...
0
votes
0answers
373 views

NGINX Config for Redirecting Cloudflare IP Geolocation

Please excuse my ignorance - I'm a dev that was forced into a sysadmin position. I'm looking for help setting up geoip redirecting based on CloudFlare's IP Geolocation so that my NGINX server will ...
0
votes
1answer
236 views

NGINX, GeoIP, Varnish : Too many Redirects

I own two servers. One in Singapore (data.example.me) and other one in Europe (eu.data.example.me). I want the website to serve the users from their closest server when they visit my website. I ...
1
vote
3answers
579 views

Nginx and GeoLite2 not working

Is Nginx official ngx_mod_http_geoip compatible with GeoLite2 databases ? I can't get them working, so I assume they are not compatible ?
-1
votes
1answer
494 views

What this is parameter in the geo block in Nginx?

In nginx, in geo module it has the following example http://nginx.org/en/docs/http/ngx_http_geo_module.html I am wondering what is this 0,2,1,1 numbers etc.. stated after the main addresses (values). ...
1
vote
0answers
369 views

Nginx 301 redirect of bad requests

I've found those requests in my access.log of nginx: X.X.X.X - - [03/Apr/2017:20:52:31 +0200] "GET //phpMyAdmin/scripts/setup.php HTTP/1.1" 301 184 "-" "-" X.X.X.X - - [03/Apr/2017:20:52:31 +0200] "...
0
votes
1answer
877 views

GEOIP for IIS 10

I'm migrating from Apache 2.4 back to IIS 10. IIS does have a IP restriction interface but there is noway to GEO ban by country. Is there a similar module than Apache Maxmind Geo IP module for IIS? ...
1
vote
1answer
1k views

Nginx proxy_set_header not working to Apache GEOIP

I'm using Nginx reverse proxy to apache2 using following tutorial. Then i try to install geoip to Nginx using this tutorial The reverse proxy works flawlessly for a while now, until I tried to ...
2
votes
3answers
2k views

Geo-blocking in Azure

Is there any functionality available in azure out of the box to block access to a website or server from specific countries? In a larger project that I'm involved with, we have an Imperva WAF and ...
2
votes
1answer
1k views

GeoIP PHP extension not working on CentOS 7

I can't get the GeoIP PHP extension working on CentOS 7 and PHP 5.5.21. I first started with yum install php-pecl-geoip and restarted httpd. I then did a simple test: $record = geoip_record_by_name(...
-1
votes
1answer
259 views

How to use Env in mod_substitute?

Okay, I'm not very strong at htaccess. I have a code: SetEnvIf GEOIP_COUNTRY_CODE US LinkC example1 AddOutputFilterByType SUBSTITUTE text/html Substitute s/example2/env=LinkC/ni I'm trying to ...
4
votes
3answers
7k views

unknown directive “geoip_country” on nginx/1.10.1

I have a nginx/1.10.1 on my CentOS 7 installed via nginx repo. I just install geoip module [root@www nginx]# nginx -V nginx version: nginx/1.10.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ...
0
votes
0answers
2k views

Nginx: How to determine if a module is installed

Im using nginx as load balancer in a dockerized setup. Im trying to get the http_geoip_module up and running so I can redirect traffic based on users geographical position. Question: The command ...
2
votes
1answer
1k views

MaxMind GeoIP CSV to .dat

I need to put local IP addresses into MaxMind GeoIP DB. I've downloaded the CSV and adding new IP addresses and locations is easy. I've found two tools that do csv to dat for MaxMind GeoIP but I can't ...
3
votes
0answers
1k views

Apache 2.4, mod_geoip GeoIPScanProxyHeaders “On” not working

apache httpd.conf LoadModule geoip_module modules/mod_geoip.so <IfModule mod_geoip.c> GeoIPEnable On GeoIPEnableUTF8 On GeoIPOutput Env GeoIPScanProxyHeaders On GeoIPDBFile /...
0
votes
2answers
656 views

“Nmap Scripting Engine” HTTP Requests

I looked into my nginx access logs to check who accessed my server and I noticed this line: <IP> - - [25/Feb/2016:02:49:12 +0100] "GET / HTTP/1.1" 302 160 "-" "Mozilla/5.0 (compatible; Nmap ...
0
votes
1answer
2k views

nginx GEOIP behind cloudflare proxy showing wrong country (not of end user, but if proxy)

I am using Cloudflare and nginx geoip directives: geoip_country /usr/local/share/GeoIP/GeoIP.dat; geoip_city /usr/local/share/GeoIP/GeoLiteCity.dat; They are picking the IP up OK (as pipaddress ...
0
votes
1answer
626 views

How to test GeoIP .dat librairie in local

I'm on a projet where I have to implement GeoIP on a Redhat Apache instance. For now, i'm only testing the configuration in local. Here it is : <IfModule mod_geoip.c> GeoIPEnable On ...
1
vote
0answers
411 views

NginX with GeoIP - what is returned for geo code when no mapping is found?

As the tests I conducted (using Java API to read GeoIP.dat, as well as local test) might be insufficient, I was wondering what happens on NginX when geo-ip module is configured, and when no IP to ...
0
votes
1answer
6k views

How should I add GeoIP module to nginx?

I'm using nginx version 1.8 on a centos 6.7 server but when using nginx -V command , I can't see geoip_module there . How can I add it to nginx ?
0
votes
0answers
362 views

GeoIP module (mod_geoip2) and Amazon EC2 Ubuntu instance

I have installed GeoIP mod via http://dev.maxmind.com/geoip/legacy/mod_geoip2/ and have made sure the permissions are correct for www-data to read the database. We are just needing to block a ...
0
votes
1answer
2k views

nginx geoip redirect for first time only leads to redirect loop

I'm trying to configure nginx to perform geoIP checks on first-time visitors only. The idea is that first-time visitors should be redirected to the page version which has been customised for their ...
0
votes
1answer
170 views

Varnish GeoIP (vmod_geoip) + Amazon Linux

I'm trying to install vmod_geoip via amazon linux, but so far no luck. I've installed geoip geoip-devel. I've downloaded the vmod_geoip source. I'm able to ./autogen.sh but ./configure constantly ...
1
vote
3answers
242 views

Arvixe claims that my physical host is located in Europe eventhough the whois information

When I look whois of the site it seems like located in US. My site is: www.evdore.com. 1 * * * 2 hos-tr1.juniper1.rz13.hetzner.de 213.239.224.1 de 0.145 ms hos-tr4....
0
votes
0answers
240 views

IPTABLES and GEOIP: Show Custom Webpage to Blocked Visitors

Because of legal protection, as a first stage of launching my project I will focus on couple of countries only. The number of supported countries will grow. I know, it is possible to block or allow ...
0
votes
1answer
610 views

Configure IIS to only server certain files to requests originating in the US?

The transfer of encrypted data or encryption systems from the US to foreign nations is tricky business as encryption can be categorized as a munition and can be governed by US export laws. I plan to ...
1
vote
1answer
936 views

Unable to configure MaxMindDB's Apache module

I recently installed MaxMind's MaxMindDB apache module successfully. I added a new file called geoip.conf to /etc/httpd/conf.d/ with the following contents: <IfModule mod_maxminddb.c> ...
1
vote
1answer
658 views

Nginx Location Rewrite Rule matching GeoIP Header value

I'm looking to write a simple rewrite rule where I basically am trying to say the following If the requested URI is text/index.html (or test/) and the GeoIP Organization equals "My GeoIP Value" then ...
-2
votes
1answer
602 views

Is there any rate limit when using the whois command on ips? [closed]

The data returned by whois ip-address appears to be very useful and more accurate than the data I get from the maxmind geoip databsae I am currently using. Where does the data come from and are there ...
0
votes
1answer
1k views

Nginx block specific directory to one country

I'm using Nginx and GeoIP to block certain countries (to the whole site). Is it possible to block just one specific directory? This way: www.domain.com/ Everyone can access www.domain.com/ES ...
2
votes
2answers
3k views

Nginx geoipblocking & allowing LAN IPs

I'd like to block IPs with geoip except whitelisted countries AND the local area network. The first part works flawless, the second one not. Somwehere searching the internet I found the codes LH (...
0
votes
1answer
122 views

I can compile GeoIP support into uWSGI or Nginx. What's the difference?

I'm running uWSGI with PHP and Python support through Nginx. All of this is compiled from source. I want GeoIP support. Both Nginx and uWSGI can be compiled with their own GeoIP plugins/modules. Are ...
0
votes
1answer
204 views

apache 2.2 and http auth. by country with mod_geoip

I'm using mod_geoip for filtr some traffic. So now I have e.g. this SetEnvIf GEOIP_COUNTRY_CODE FR AllowCountry <Locationmatch "/secure-by-country"> Deny from all Allow from env=AllowCountry &...
0
votes
4answers
590 views

IP address and geolocation

I very well know that this has been asked quite a number of times here itself but folks please give this question a read. Plus I'm giving my best to phrase this question, hence the Prelude/Question ...
1
vote
1answer
673 views

open source geolocation aware authoritative DNS server with edns-client-subnet support

geoip-enabled authoritative dns server is quite easy to find - bind9 with patch can do it, powerdns as well. but the problem starts when server receives DNS query from global public resolvers like ...
-1
votes
1answer
1k views

How to Enable geoip on magento with varnish page cache

I currently have 3 stores online with 3 different domains, running magento with Apache and varnish (using Phoenix page cache extension) running on centos One store is for uk, another for Ireland and ...
0
votes
1answer
889 views

Nginx redirect and geolocalization

I've the following problem with Nginx and GeoIP and will be nice if you can give me some pointers about the solution. Note: I know this can be solved on DNS side, but that won't be possible by now so ...
1
vote
2answers
2k views

One hostname and two servers in different countries

I have a site, let it be www.site.com/ (ASP NET MVC, but that's doesn't really matter) I have another site, let it be www.secondsite.vi/ (it hosts in Vietnam). The structure of the sites is the same, ...
7
votes
2answers
9k views

GeoIP for configuration into nginx

I'm trying to compile geoip into nginx. When doing ./configure --with-http_geoip_module I get the following error. ./configure: error: the GeoIP module requires the GeoIP library. You can either do ...