Nginx geoip testing
At work I had the task to implement a redirection based on the visitors country for the company website.
I came to use this serverfault.com answer as a base for my implementation.
But how do I test this? In order to test the behavior I need to fake IP adresses from all over the world. iptables to the rescue!
Faking the source IP address To test this I had the NGINX running in a virtual machine.