Procedure to enable Mac Firewall

I’m looking for a procedure to enable a mac firewall. It would consist of the following command.

sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1

hi @batboy

I have forwarded your request to concern team and requested them to get back to you.

Thank you

Hi @batboy ,

We have created a script request task ticket “CS-53891” and shared it with our script developer.

Kind Regards,
PremJK

Hi @batboy ,

Please try this script prepared by our script developer and provide your feedback
https://scripts.itarian.com/frontend/web/topic/script-to-turn-off-or-turn-on-macos-firewall

Kind Regards,
PremJK