2.) This will now reveal a "Script" section available in your Gui display, from which you can now populate scripting logic against various targets.
3.) From here, simply click on the Scripting place-holder, and click "Create new". The Script detail should point to the Policy Package, ADOM Database.
4.) Shown below is an example of 4 simple policies; the script instruction(s) comprising two policies for the Header, and likewise for the footer section.
config global header policy
edit 1
set srcintf "any"
set dstintf "any"
set srcaddr "gall"
set dstaddr "gall"
set action accept
set schedule "galways"
set service "gBGP"
set logtraffic all
set profile-protocol-options "gdefault"
end
end <<<<<<< Notice here, that you will need to separate your Header and Footer policy instructions by an "end" argument.
config global footer policy
edit 2
set srcintf "any"
set dstintf "any"
set srcaddr "gall"
set dstaddr "gall"
set action accept
set schedule "galways"
set service "gESP"
set logtraffic all
set profile-protocol-options "gdefault"
next
end
5.) After you've populated your script instruction, right click your Script and press "run". You will be asked to run the script against a policy package. Upon commencing with the operation, you will see a message indicating that the Script is executing, and to view the Script Execution History log file for the result.
6.) A successful script, with proper syntax, would be reflected by the appearance of rules visually identifiable in the display.
7.) From here, you would select the assignment tab to assign the Global Policy to an Adom.
8.) After assigning the policy, it would then be viewable as rules situated before (the Header rules), and after (the Footer rules) - any other rules in place and already attached to a Policy Package. In this example, the Policy Package(s) living in the root Adom.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.