15 lines
267 B
Bash
Executable File
15 lines
267 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Unbans a fail2ban IP
|
|
# Copyright 2021 Bryan C. Roessler
|
|
|
|
[[ -f functions ]] && . functions || exit 1
|
|
|
|
is_root
|
|
|
|
[[ $# -lt 1 ]] && echo "Must provide an IP address" && exit 1
|
|
|
|
IPADDRESS="$1"
|
|
|
|
fail2ban-client set sshd unbanip "$IPADDRESS"
|
|
|
|
exit $? |