How to definitely ban an IP in your server via SSH
A permanent ban of an IP that tries to connect to your linux server can be done with iptables but with a tweak in Fail2Ban.
As the issue with Fail2Ban/iptables will be that everytime that you restart Fail2Ban, the IP will disappear.
So we will create a file to store them forever.
Note: Commissions may be earned from the links above.
This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.