Fail2ban/iptables - Allow selected countries only
On Ubuntu, is it possible to add location based rules to Fail2ban and/or iptables? I'd like to block all SSH, SMTP, IMAP, etc. connections attempts except these incoming from selected countries.
For example, I know the countries where the few people I need to allow SSH for are located.