To set up and customize your firewall, use the Firewall pane of Security & Privacy preferences.
Choose Apple menu > System Preferences, click Security & Privacy, then click Firewall.
Open the Firewall pane for me