fail2ban.sh 463 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. echo -e '
  3. ___ _ _ ___ _
  4. | __|_ _(_) |_ ) |__ __ _ _ _
  5. | _/ _` | | |/ /| ._ \/ _` | . \
  6. |_|\__,_|_|_/___|_.__/\__,_|_||_|
  7. '
  8. echo -e "Installing fall2ban"
  9. . bin/checkroot.sh
  10. sleep 2
  11. apk add fail2ban
  12. # cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
  13. # ToDo ask for email and configure jail.local with it
  14. rc-update add fail2ban
  15. # rc-update start fail2ban
  16. # service fail2ban start
  17. /etc/init.d/fail2ban start
  18. echo -e "fail2ban installed"