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.
Vichu_94
Staff
Staff
Article Id 222790

 

Description The article describes how to configure the scheduled firewall policy expiration.
Scope FortiGate.
Solution

The feature will allow scheduling a firewall policy to expire after a certain period for a special event on the network.

To configure firewall policy expiration in the GUI, the feature must first be enabled in Feature Visibility.

  1. Go to System -> Feature visibility.
  2. Enable the workflow management.

 

Screenshot 2025-04-10 190341.png


Next, go to Policy & Objects -> Firewall and select 'Create New' to create the firewall policy. 
After configuring the required source and destination interface/IP address, it is possible to see a section workflow Management.

 

Vichu_94_0-1662212992895.png


By default, the policy would expire in 30 days, whereas in Specify to can specify the date and time for the expiration.

 

Vichu_94_1-1662213123386.png

 

To configure the same on the CLI, follow the command below. 

 

config firewall policy
    edit <Policy ID>
        set policy-expiry enable
        set policy-expiry-date 2022-10-03 15:45:12     
end


The Date and time format to be followed on the CLI would be YYY-MM-DD HH:MM:SS.

 

Once the policy is added, a log entry will be generated under the System Event Logs, as shown below:
Logs & Report -> System Event logs -> General Event logs:

 

image (7).png
Once a policy reaches its expiration time, a warning icon appears next to the policy name, as shown below:


image 9.jpg

 

When Workflow Management is enabled, a Summarize Change Pane is open and required. This summary is used for Audit purposes. This Audit Trail is only supported by FortiGate models with disk logging.

 

summary.png

 

To review the Audit Trail on the GUI, go to: Policy & Objects -> Firewall Policy.

Edit the desired policy. In the right-side panel, select Audit Trail.

 

audit trial.png

 

This will open the Audit trail for Firewall Policy Pane and will display the change summaries.

 

change summary.png


Related document:
Add Policy change summary and Policy expiration to Workflow Management