Fail2ban how to block unblock whitelist ip

fail2ban-client status 

Status
|- Number of jail: 1
`- Jail list: sshd

This command will show the current jails for the setup.

To unblock an ip from the jail:

fail2ban-client set sshd unbanip 100.100.100.1

To whitelist an ip:

fail2ban-client set sshd addignoreip 100.100.100.1


To block ban an ip:

fail2ban-client set sshd banip 100.100.100.1
  • fail2ban, whitelist, block, ignore, ip
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 Centos 8 to Centos 8 Stream migration

Update CentOS 8 to latest available version using command: $ sudo dnf update After updating the...

 Count the amount of inodes - files in a given directory

#!/bin/bash## @title inodes#...

 cve-2021-3156 vulnerability

Qualys Security Advisory Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)...

 Docker failed with the error: Error response from daemon: error creating overlay mount to invalid argument

If you receive below  error when trying to configure a docker application: Docker failed with...

 Fail2ban high memory usage

The initial fail2ban virtual memory overhead on the server was approximately 350MB.While that is...