New FalconFirewallGroup - CrowdStrike/psfalcon GitHub Wiki
Create Falcon Firewall Management rule groups
Requires 'Firewall management: Write'.
| Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName | 
|---|---|---|---|---|---|---|---|
| Name | String | Rule group name | X | ||||
| Enabled | Boolean | Rule group enablement status | X | ||||
| Platform | String | Operating system platform [default: windows] | X | ||||
| Description | String | Rule group description | X | ||||
| Rule | Object[] | Firewall rules | X | ||||
| Comment | String | Audit log comment | X | ||||
| Library | String | Clone default Firewall rules | |||||
| CloneId | String | Clone an existing rule group | |||||
| Validate | Switch | Toggle to perform validation, instead of creating rule group | 
New-FalconFirewallGroup [-Name] <String> [-Enabled] <Boolean> [-Platform] <String> [[-Description] <String>] [[-Rule] <Object[]>] [[-Comment] <String>] [[-Library] <String>] [[-CloneId] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]New-FalconFirewallGroup [-Name] <String> [-Enabled] <Boolean> [-Platform] <String> [[-Description] <String>] [[-Rule] <Object[]>] [[-Comment] <String>] [[-Library] <String>] [[-CloneId] <String>] -Validate [-WhatIf] [-Confirm] [<CommonParameters>]POST /fwmgr/entities/rule-groups/v1
POST /fwmgr/entities/rule-groups/validation/v1
create_rule_group
create_rule_group_validation
The Rules parameter accepts a PowerShell array of rule objects which are converted to Json before submission.
$Rule = @(
    @{
        name = 'Block IP'
        description = 'Block outbound to example.com IP address'
        enabled = $true
        action = 'DENY'
        direction = 'OUT'
        address_family = 'IP4'
        protocol = '*'
        fields = @(
            @{
                name = 'network_location'
                type = 'set'
                values = @( 'ANY' )
            }
        )
        local_address = @(@{ address = '*'; netmask = 0 })
        remote_address = @(@{ address = '93.184.216.34'; netmask = 32 })
    }
)
New-FalconFirewallGroup -Name 'test rule group' -Enabled $true -Platform windows -Description 'describing a rule group' -Rule $Rule2025-09-19: PSFalcon v2.2.9
