Skip to main content
ckarwei
Staff
Staff
November 2, 2021

Technical Tip: Configure installation target scope for a policy within policy package

  • November 2, 2021
  • 0 replies
  • 2360 views
Description
This article describes how to configured policies to install only to specific unit instead of all the units under the installation target for a policy within the policy package using CLI script.
Solution
1) By default, firewall policies within the policy package will be install to all units as configure in policy package’s installation targets. 





2) By running the following script to the policy package, installation limit on policy 1 will be enable. 

# config firewall policy
edit "1"
    set _limit_scope enable
end




3) There’s no unit specify in the script earlier. 'Install On' is empty for policy 1. 




4) The following script will set 'FGT01' as the installation target for policy 1. In this case, VDOMis not enable on 'FGT01'. However, it is necessary to specify the VDOM (root) in the script. 

# config firewall policy
edit "1"
    set _scope "FGT01"-"root"
end




5) It is possible to have multiple entries in the installation target. 

# config firewall policy
edit "1"
   set _scope "FGT01"-"root" "FGT02"-"root"
end




6) The following script will turn off install limit. Policy 1 installation target will back to default. 

# config firewall policy
edit "1"
   set _limit_scope disable
end