How do i turn on firewall on my macbook air?

I just got a new macbook air and i need to know if i need some sort of protection from the hackers. If so, i heard there is some type of firewall, and how would i be able to acess that to turn it on.


Open the Security & Privacy pane of System Preferences, click on Firewall, open the padlock at the bottom of the window, and turn it on. If you're using a router, it'll probably have its own firewall.