FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
dbhavsar
Staff
Staff
Article Id 292217
Description This article describes how to clone objects, policies, and UTM profiles using the CLI.
Scope FortiOS.
Solution
  1. Clone the firewall policy using the following command:

config firewall policy

clone <policy_id> to <new_policy_id>

 

For example:

 

config firewall policy

clone 98 to 20

end


clone-policy.jpg
Note: The cloned policy status will also be cloned. Disable it before cloning or, if it will not impact the production, clone without disabling it.

 

  1. Clone the UTM profiles:

config <dnsfilter/ web-filter/ antivirus> profile

clone <existing-profile-name> to <new_profile_name>

Example for web-filter profile:

 

config webfilter profile

clone wifi-default to cloned-new

end

 


cloned-web-filter.jpg
Note: The references from the existing profile will not be cloned. It will be '0' for cloned profiles.

 

It is also possible to clone custom services, local-in-policies, application control, and remaining UTM profiles.

Contributors