Access control using Fail2Ban and geoip
Geolookup
In order to do a geolookup from the command line, we have to get the GeoIP binary and database installed.
apt-get install geoip-bin geoip-database
Test it:
geoiplookup 8.8.8.8
should give you
GeoIP Country Edition: US, United States