In order to “whitelist” you can:
- Less than 10 IPs: Create a firewall rule for each IP
- 10 and more IPs: Create an ipset and create a firewall rule
BUT this won’t work since fail2ban will still ban your IP. You need to edit fail2ban jail.local
/etc/fail2ban/jail.local
[DEFAULT]
ignoreip = 195.114.211.xxx 5.56.63.xxx 5.56.62.xxx 185.37.226.xxx 5.56.60.xxx
You may even try something like this