Added usage information

This commit is contained in:
Andrew Cornford 2025-06-09 11:10:31 +01:00
parent 4f03b3cda6
commit 1821fb1861
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ source /usr/local/bin/helpers/index.sh
function __usage() {
echo "Usage: ./setup.sh fail2ban [<ban|unban> <IP>]"
echo " ./setup.sh fail2ban [<ignore|consider> <IP OR CDIR RANGE>]"
echo " ./setup.sh fail2ban log"
echo " ./setup.sh fail2ban status"
}

View file

@ -59,6 +59,8 @@ ${RED}[${ORANGE}SUB${RED}]${ORANGE}COMMANDS${RESET}
setup fail2ban ${RESET}
setup fail2ban ${CYAN}ban${RESET} <IP>
setup fail2ban ${CYAN}unban${RESET} <IP>
setup fail2ban ${CYAN}ignore${RESET} <IP OR CDIR RANGE>
setup fail2ban ${CYAN}consider${RESET} <IP OR CDIR RANGE>
setup fail2ban ${CYAN}log${RESET}
setup fail2ban ${CYAN}status${RESET}