Description
This article describes how to learn policy in IPv4 policy.
Scope
FortiGate.
Solution
When installing a new FortiGate, the first policy set up is usually one that goes from the inside to the Internet with fairly little in the way of restrictions.
After all, make sure to be able to connect to things before the access is limited for policy reasons.
Once this first connection is verified and that everyone can access the Internet it is time to start locking things down.
Take that first policy, the one that most outbound traffic will be going through.
When it was first set up, the action field was set to ACCEPT.
The options for this field are ACCEPT, DENY, LEARN, and IPsec.
The option that interests us now is LEARN.
Profiles not included are:
Note:
This is not available now in the NAT mode, to achieve the learn mode in the security policy the FortiGate should be in NGFW mode.
The NGFW mode should be set to Policy-Based. In the security policy changed the policy mode to learn mode.
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 2025 Fortinet, Inc. All Rights Reserved.