# pw platform firewall set

> Source: https://parallelworks.com/docs/cli/pw/platform/firewall/set

## pw platform firewall set

Change the firewall's mode, paranoia level or anomaly threshold

```
pw platform firewall set [flags]
```

### Examples

```
  # Log what would be blocked without blocking anything, such as during an incident
  pw platform firewall set --mode detection_only
  
  # Block again
  pw platform firewall set --mode on
  
  # Block on a lower anomaly score
  pw platform firewall set --threshold 3
```

### Options

```
  -h, --help                 help for set
      --mode string          on blocks; detection_only only logs what would be blocked, platform rules and blocked IPs included
      --paranoia-level int   CRS paranoia level, 1 to 4: higher catches more attacks and blocks more legitimate requests
      --threshold int        Anomaly score at which a request is blocked; a critical match scores 5
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw platform firewall](/docs/cli/pw/platform/firewall)	 - Manage the platform firewall
