Creating policies based on logged traffic
When FortiManager has a managed FortiAnalyzer device, administrators can create new policies based on Policy Hit traffic in FortiView using the policy creation wizard. This feature is only available when FortiAnalyzer is added to FortiManager as a managed device; it is not supported on a FortiManager with FortiAnalyzer features enabled.
To create policies from policy hits:
- Add a managed FortiAnalyzer to FortiManager. See Add FortiAnalyzer or FortiAnalyzer BigData
- Go to FortiView > Traffic > Policy Hits.
- Create a new policy from the Policy Hits table or from the Log View drilldown view, after which the policy creation wizard opens.
- Policy Hits table: Right-click on a policy hit in the table, and click Create Policy.
- Log View drilldown: Double click on a log in the Policy Hits table to drilldown to Log View, and click Create Policy.
- Policy Hits table: Right-click on a policy hit in the table, and click Create Policy.
- In the wizard, you can explore policy elements using text filters and Group By categorization.
- Select one or more entries in the log table, and click Create.
- In the Add Policies & Policy Template dialog, configure your policy options, and then click Next:
Add Policies By Select one of the following options for adding the policy:
- Create New Policy Block: Policies are added to a new Policy Block. When this option is selected, you must enter a name for the Policy Block or use the default name provided.
- Add to Existing Policy Block: Policies are added to an existing Policy Block. Select the existing Policy Block from the Policy Block dropdown menu.
- Insert Before Package Policy: Policies are inserted above the policy that it originated from.
Policy Block Visibility The Policy Block feature must be enabled in Policy & Objects > Feature Visibility in order to manage Policy Blocks in the GUI.
This field is displayed when the Add Policies By setting is configured to Create New Policy Block or Add to Existing Policy Block, and the Policy Block feature visibility is not enabled in the ADOM.
Enable this setting to enable Policy Block feature visibility for the current ADOM. Disable this setting (default) to leave Policy Block visibility disabled.
Policy Type Displays the type of policy that will be created. Use Interface From
Select where the Incoming Interface and Outgoing Interface are from:
- Traffic Log
- Policy
- Custom
Schedule
Displays the schedule.
Action
Displays the policy action.
Update Template
Manually update the policy template by clicking Open Edit Page.
- In the Preview Objects dialog, review the objects that will be used by the policy, and then click Next. Objects will be automatically created if FortiManager cannot find a match in the current ADOM.
- In the Preview Policies dialog, review the policies that will be created, and then click Next.
- Click Next to generate the policies. The results of the policy creation wizard are displayed.
Once created, policies can be viewed in Policy & Objects.