How to bock ports and IPs?

I am having the NIS v. 21.1.0.18. I want to configure the NIS to block some specific ports and IPs. Could anyone give me a guide on how to do this. I have tried to figure it out but so far has no success.

Thank you,