Skip to content

Commit

Permalink
Policy(Firewall) test_policy => MyFGTPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Dec 21, 2019
1 parent f7d3e27 commit da0bc5c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions PowerFGT/Public/cmdb/firewall/policy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@ function Add-FGTFirewallPolicy {
Add a FortiGate Policy/Rules (source port/ip, destination port, ip, action, status...)
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all
Add a Test_policy with source port port1 and destination port1 and source and destination all
Add a MyFGTPolicy with source port port1 and destination port1 and source and destination all
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -nat
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -nat
Add a Test_policy with NAT is enable
Add a MyFGTPolicy with NAT is enable
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -action "deny"
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -action "deny"
Add a Test_policy with action is Deny
Add a MyFGTPolicy with action is Deny
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -status:$false
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -status:$false
Add a Test_policy with status is disable
Add a MyFGTPolicy with status is disable
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -service "HTTP, HTTPS, SSH"
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -service "HTTP, HTTPS, SSH"
Add a Test_policy with multiple service port
Add a MyFGTPolicy with multiple service port
.EXAMPLE
Add-FGTFirewallPolicy -name test_policy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -schedule workhour
Add-FGTFirewallPolicy -name MyFGTPolicy -srcintf port1 -dstintf port2 -srcaddr all -dstaddr all -schedule workhour
Add a Test_policy with schedule is workhour
Add a MyFGTPolicy with schedule is workhour
#>

Expand Down

0 comments on commit da0bc5c

Please sign in to comment.