How to secure guide for noob

i’ve done some trials and as i see user and admin webui are not protected by fail2ban, i’ve made alot of attempt from another ip, and i was not banned

how can i setup fail2ban to block ip for x min when y failed attempt was tried?