How to setup MaxMind Mod_GeoIP in Varnish

Roland Rebstock racemd at
Tue Jan 25 03:10:24 CET 2011

I saw that but I don’t know how to set it to  only allow certain countries or block them for that fact… Where do you specify the countries you want to allow or block?





From: jean-marc pouchoulon [mailto:jeanmarc.pouchoulon at] 
Sent: Monday, January 24, 2011 2:33 PM
To: Roland Rebstock
Cc: varnish-misc at
Subject: Re: How to setup MaxMind Mod_GeoIP in Varnish


Le 21/01/2011 18:52, Roland Rebstock a écrit : 

All, I want to be able to setup Mod_GeoIP to restrict Countries in Varnish,
I tried on the web server but of course the web server is fronted by my
Varnish server.  Anyone have instructions on how to setup Varnish with
Mod_GEOIP to only allow certain countries?

you can have a look at this recipe.


varnish-misc mailing list
varnish-misc at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list