< Back
Set-NsxEdgeFirewallRule
Post
NAME Set-NsxEdgeFirewallRule
SYNOPSIS
Set configuration for a Firewall Rule from the specified ESGs FirewallRule configuration.
SYNTAX
Set-NsxEdgeFirewallRule [-FirewallRule] <XmlElement> [[-enabled] <Boolean>] [[-loggingEnabled] <Boolean>] [[-name]
<String>] [[-comment] <String>] [[-action] <String>] [[-Connection] <PSObject>] [<CommonParameters>]
DESCRIPTION
An NSX Edge Service Gateway provides all NSX Edge services such as firewall,
NAT, DHCP, VPN, load balancing, and high availability. Each NSX Edge virtual
appliance can have a total of ten uplink and internal network interfaces and
up to 200 subinterfaces. Multiple external IP addresses can be configured
for load balancer, site???????????????to???????????????site VPN, and NAT services.
The NSX Edge provides layer 3/4 firewall services to protect connected
networks. the Edge firewall is separate from, and can be used to
complement the NSX distributed firewall.
This cmdlet accepts a Edge firewall rule object returned from Get-NsxEdgeFirewallRule
and set configuration (disabled, name, action...)
PARAMETERS
-FirewallRule <XmlElement>
Edge FW rule as returned by Get-NsxEdgeFirewallRule / New-NsxEdgeFirewallRule
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-enabled <Boolean>
Required? false
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-loggingEnabled <Boolean>
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-comment <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-action <String>
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object.
Required? false
Position? 7
Default value $defaultNSXConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-enabled:$false
Disabled the RuleId 1007 of NSX Edge 01
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>GGet-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-loggingEnabled:$true
Enable logging on the RuleId 1007
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule -name
"My Edge Firewall Rule"
Set/Update the name of the RuleId 1007
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-comment "My comment on this Edge Firewall Rule"
Set/Update the description of the RuleId 1007
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-action deny
Change action to deny to RuleId 1007
RELATED LINKS
SYNOPSIS
Set configuration for a Firewall Rule from the specified ESGs FirewallRule configuration.
SYNTAX
Set-NsxEdgeFirewallRule [-FirewallRule] <XmlElement> [[-enabled] <Boolean>] [[-loggingEnabled] <Boolean>] [[-name]
<String>] [[-comment] <String>] [[-action] <String>] [[-Connection] <PSObject>] [<CommonParameters>]
DESCRIPTION
An NSX Edge Service Gateway provides all NSX Edge services such as firewall,
NAT, DHCP, VPN, load balancing, and high availability. Each NSX Edge virtual
appliance can have a total of ten uplink and internal network interfaces and
up to 200 subinterfaces. Multiple external IP addresses can be configured
for load balancer, site???????????????to???????????????site VPN, and NAT services.
The NSX Edge provides layer 3/4 firewall services to protect connected
networks. the Edge firewall is separate from, and can be used to
complement the NSX distributed firewall.
This cmdlet accepts a Edge firewall rule object returned from Get-NsxEdgeFirewallRule
and set configuration (disabled, name, action...)
PARAMETERS
-FirewallRule <XmlElement>
Edge FW rule as returned by Get-NsxEdgeFirewallRule / New-NsxEdgeFirewallRule
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-enabled <Boolean>
Required? false
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-loggingEnabled <Boolean>
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-comment <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-action <String>
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object.
Required? false
Position? 7
Default value $defaultNSXConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-enabled:$false
Disabled the RuleId 1007 of NSX Edge 01
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>GGet-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-loggingEnabled:$true
Enable logging on the RuleId 1007
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule -name
"My Edge Firewall Rule"
Set/Update the name of the RuleId 1007
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-comment "My comment on this Edge Firewall Rule"
Set/Update the description of the RuleId 1007
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-NsxEdge 01 | Get-NsxEdgeFirewall | Get-NsxEdgeFirewallRule -Ruleid 1007 | Set-NsxEdgeFirewallRule
-action deny
Change action to deny to RuleId 1007
RELATED LINKS