crazy-max / docker-fail2ban

Fail2ban Docker image
MIT License
638 stars 78 forks source link

[Feature Request] Add geoip package #82

Open ezruneko opened 3 years ago

ezruneko commented 3 years ago

Hi, A good feature to add in my opinion is the geoip package to add region block like https://www.webfoobar.com/node/54

Thank you and a great job with this image.

crazy-max commented 3 years ago

@ezruneko

to add region block like https://www.webfoobar.com/node/54

This topic concerns an action to perform when an IP is banned and not a filter to block a specific region. In this case they explain how to whitelist a region/country if an IP is banned by fail2ban.

I think this should be handled upstream. See fail2ban/fail2ban#1854

A good feature to add in my opinion is the geoip package

This topic also mentions geoiplookup which uses the GeoIP Legacy format (dat). Now you have to use libmaxminddb with mmdblookup. I can add this package in this image if you want, not a big deal.