firewall setup

Hi,

 

i want to ask some question about firewall.

How i can know that firewall are setup appropriately? 

i want one way to protect my computer against malware.

 

Thank you for your time.

 

Aisha.