Technical Tip: Configuring a schedule firewall policy expiration
| 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.
To configure the same on the CLI, follow the command below.
config firewall policy
Run the following command to show all configured one-time schedules:
show firewall schedule onetime
Once the policy is added, a log entry will be generated under the System Event Logs, as shown below:
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.
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.
This will open the Audit trail for Firewall Policy Pane and will display the change summaries.
NOTE: When a policy has expired, the following debug output will be shown any traffic matching an expired policy which is highlighted in blue...
diag debug reset diag debug enable
To disable: diag debug disable diag debug reset 2026-03-25 16:06:18 id=65308 trace_id=1 func=__iprope_tree_check line=535 msg="gnum-100004, use addr/intf hash, len=2"
Note: The above output is an indicator that a policy is inactive due to the policy expiration feature being enabled. If the traffic does not match any other firewall policies, the traffic will match the implicit deny policy and be dropped.
|








