mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-31 15:30:50 +02:00
Add ban feature to fail2ban script (#2538)
This commit is contained in:
parent
9aaf15b38f
commit
de61d42e68
9 changed files with 105 additions and 30 deletions
|
@ -67,8 +67,12 @@ ${RED}[${ORANGE}SUB${RED}]${ORANGE}COMMANDS${RESET}
|
|||
${0} relay ${CYAN}add-domain${RESET} <DOMAIN> <HOST> [<PORT>]
|
||||
${0} relay ${CYAN}exclude-domain${RESET} <DOMAIN>
|
||||
|
||||
${LBLUE}COMMAND${RESET} fail2ban ${RED}:=${RESET}
|
||||
${0} fail2ban ${RESET}
|
||||
${0} fail2ban ${CYAN}ban${RESET} <IP>
|
||||
${0} fail2ban ${CYAN}unban${RESET} <IP>
|
||||
|
||||
${LBLUE}COMMAND${RESET} debug ${RED}:=${RESET}
|
||||
${0} debug ${CYAN}fail2ban${RESET} [unban <IP>]
|
||||
${0} debug ${CYAN}fetchmail${RESET}
|
||||
${0} debug ${CYAN}login${RESET} <COMMANDS>
|
||||
${0} debug ${CYAN}show-mail-logs${RESET}
|
||||
|
@ -144,10 +148,11 @@ function _main
|
|||
esac
|
||||
;;
|
||||
|
||||
( fail2ban ) shift 1 ; fail2ban "${@}" ;;
|
||||
|
||||
( debug )
|
||||
case ${2:-} in
|
||||
( fetchmail ) debug-fetchmail ;;
|
||||
( fail2ban ) shift 2 ; fail2ban "${@}" ;;
|
||||
( show-mail-logs ) cat /var/log/mail/mail.log ;;
|
||||
( login )
|
||||
shift 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue