---
updatedAt: 2025-08-14T13:34:02.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-central/llms.txt
---

# MacOS Enable Firewall

```shell Shell
#!/bin/sh
/usr/libexec/ApplicationFirewall/socketfilterfw –setglobalstate on
```

```json Response Example
{"success":true}
```

# SCRIPT