diff --git a/du_setup.sh b/du_setup.sh index c1be1f4..0316b71 100644 --- a/du_setup.sh +++ b/du_setup.sh @@ -3768,14 +3768,14 @@ EOF if [[ $INVALID_COUNT -gt 0 ]] || confirm "Show instructions for adding IPs later?" "n"; then printf "\n" print_info "To add more IP addresses to Fail2Ban ignore list later:" - printf "${CYAN}1. Edit the configuration file:${NC}\n" - printf " ${BOLD}sudo nano /etc/fail2ban/jail.local${NC}\n" - printf "${CYAN}2. Update the 'ignoreip' line under [DEFAULT]:${NC}\n" - printf " ${BOLD}ignoreip = 127.0.0.1/8 ::1 YOUR_IP_HERE${NC}\n" - printf "${CYAN}3. Restart Fail2Ban:${NC}\n" - printf " ${BOLD}sudo systemctl restart fail2ban${NC}\n" - printf "${CYAN}4. Verify the configuration:${NC}\n" - printf " ${BOLD}sudo fail2ban-client status${NC}\n" + printf "%s1. Edit the configuration file:%s\n" "$CYAN" "$NC" + printf " %ssudo nano /etc/fail2ban/jail.local%s\n" "$BOLD" "$NC" + printf "%s2. Update the 'ignoreip' line under [DEFAULT]:%s\n" "$CYAN" "$NC" + printf " %signoreip = 127.0.0.1/8 ::1 YOUR_IP_HERE%s\n" "$BOLD" "$NC" + printf "%s3. Restart Fail2Ban:%s\n" "$CYAN" "$NC" + printf " %ssudo systemctl restart fail2ban%s\n" "$BOLD" "$NC" + printf "%s4. Verify the configuration:%s\n" "$CYAN" "$NC" + printf " %ssudo fail2ban-client status%s\n" "$BOLD" "$NC" printf "\n" log "Displayed post-installation Fail2Ban instructions." fi