From 7c738ee84942aecf0412ef8555845c87a7a006f1 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 8 Jan 2025 21:18:15 +0100 Subject: [PATCH] Policy(Member): Add .EXAMPLE to add source or destination interface --- PowerFGT/Public/cmdb/firewall/policy.ps1 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/PowerFGT/Public/cmdb/firewall/policy.ps1 b/PowerFGT/Public/cmdb/firewall/policy.ps1 index 7bc7d78c..02a9e6cf 100644 --- a/PowerFGT/Public/cmdb/firewall/policy.ps1 +++ b/PowerFGT/Public/cmdb/firewall/policy.ps1 @@ -326,7 +326,7 @@ function Add-FGTFirewallPolicyMember { Add a FortiGate Policy Member .DESCRIPTION - Add a FortiGate Policy Member (source or destination address) + Add a FortiGate Policy Member (source or destination address/interface) .EXAMPLE $MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy @@ -340,6 +340,17 @@ function Add-FGTFirewallPolicyMember { Add MyAddress1 and MyAddress2 member to destination of MyFGTPolicy + .EXAMPLE + $MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy + PS C:\>$MyFGTPolicy | Add-FGTFirewallPolicyMember -srcintf port1 + + Add port1 member to source interface of MyFGTPolicy + + .EXAMPLE + $MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy + PS C:\>$MyFGTPolicy | Add-FGTFirewallPolicyMember -dstintf port2 + + Add port2 member to destination interface of MyFGTPolicy #> [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'low')]