How to block/ban IP

Hi how can i block an attacker IP? Where do i click on? Should i click on network monitor? and is it possible to make only one rule to ban the ip address /in/out tcp/udp protocol IP or???