Firewall policy: allowing traffic
Sign in to read this lesson
The firewall policy is the heart of a FortiGate: it defines which traffic may pass from where to where. In this lesson we learn the parts of a policy, the top-down matching rule, the implicit deny, and how to write a first policy.
What you will learn
- A policy answers six questions: from where (srcintf), to where (dstintf), who (srcaddr), to whom (dstaddr), when (schedule), which service (service). Then the decision:
acceptordeny. - Policies are checked top-down and the first match is applied. The rest are not examined.
- If no policy matches, traffic is dropped by the implicit deny. This rule is always at the end of the list and cannot be deleted.
- A policy is one-directional and is written for the side that starts the session. No separate policy is needed for reply traffic, because the FortiGate is stateful.
- The default action of a new policy is deny. In the CLI do not forget
set action accept.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.