Quote:
Originally Posted by c0wb0y
You can actually do a perma-ban. However, if the list of that goes too long, it might even have a negative impact on your server. I just ban them for 4-6hours and live with it.
|
You can set it from c-line using (assuming postfix jail here)
perma-ban:
Code:
fail2ban-client set postfix bantime -1
10 minute ban:
Code:
fail2ban-client set postfix bantime 600
NOTE: These two^^ commands do not require a fail2ban service restart and the effect is immediate.
(You keep your current rules 'alive' where 'service fail2ban restart' likely will not)
Checking the setting is just as easy:
Code:
fail2ban-client get postfix bantime
Please let us know.