sudo fail2ban-client set recidive bantime 3600 # 1 Hour bantime

This commit is contained in:
qo-op 2021-05-18 00:12:32 +02:00
parent e596cd1cb1
commit 22a0849410
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ do
# $USER ALL=(ALL:ALL) NOPASSWD:/usr/bin/fail2ban-client
sudo fail2ban-client add recidive 2>/dev/null 1>&2
sudo fail2ban-client start recidive
sudo fail2ban-client set recidive bantime 3600 # 1 Hour bantime
sudo fail2ban-client set recidive banip $ip
# Show ALL banned IP
sudo fail2ban-client status recidive