πŸ›‘οΈ ToastFort
Home

Domain 2 Firewall policies & authentication

Exam weight 20–25% Β· Fortinet docs β†—

trapmemorisedefault valuenew in 7.6

Β§2.1 Firewall policies

Policies are matched top to bottom, first match wins, then the implicit deny at the bottom.

MEMORISE

The implicit deny policy is policy ID 0. When debug flow says policy 0, nothing matched.

Match criteria: incoming interface, outgoing interface, source (address / user / device), destination (address, VIP, Internet Service), service, schedule, action.

TRAP

Policy ID is not policy order. The GUI sequence number is order; IDs are permanent and non-sequential. An exhibit listing IDs 3, 1, 7 in that order means that is the evaluation order β€” do not re-sort them in your head.

TRAP

Other things exhibits hide: a specific policy placed below a broader one never matches. A disabled policy still appears in the config extract β€” check the set status line. Internet Service objects can only be a source or a destination, never both.

Inspection mode and NGFW mode

Each policy is set to flow-based or proxy-based individually.

NGFW profile-based (the default): security profiles attach to policies.

NGFW policy-based: applications and URL categories become direct policy match criteria β€” and central NAT becomes mandatory.

TRAP

"Traffic dropped right after I edited a policy" β†’ firewall-session-dirty. Set to check-all, existing sessions are re-evaluated after any policy change. Set to check-new, only new sessions are affected.

Β§2.2 SNAT and DNAT

SNAT β€” IP pool types

Central SNAT lifts NAT out of the policy into its own table, evaluated top-down independently of policy order.

DNAT with virtual IPs

MEMORISE

Order of operations: DNAT happens before the routing decision. The FortiGate therefore routes toward the mapped (internal) address, not the external one. This single fact answers a lot of VIP questions.

The firewall policy dstaddr must reference the VIP object, never the internal address.

FortiGate auto-replies to ARP for the VIP external IP β€” that is why a VIP on the interface subnet just works.

VIP types: static NAT, port forwarding, load balance.

set nat-source-vip forces reverse SNAT for hairpin scenarios.

TRAP

The classic broken-port-forward exhibit is one of: no firewall policy at all, a policy whose srcaddr is too narrow, or the VIP's external interface not matching the ingress interface. A VIP by itself does nothing.

Β§2.3 Firewall authentication

Active = the user is prompted (captive portal or a policy-triggered challenge). Passive = credentials learned elsewhere (FSSO, RSSO).

LDAP

TRAP

For Active Directory the Common Name Identifier is sAMAccountName, not cn. Exhibits show cn as a plausible wrong answer constantly.

RADIUS

Ports UDP 1812 (auth) and 1813 (accounting). Legacy: 1645 / 1646.

Auth types: PAP, CHAP, MS-CHAP, MS-CHAPv2, or auto.

Fortinet vendor-specific attribute is VSA 12356 and can push group membership.

DEFAULT

auto tries PAP β†’ MS-CHAPv2 β†’ CHAP. If the server only accepts MS-CHAPv2 and you hard-set PAP, authentication fails. That is a standard exhibit.

Β§2.4 FSSO β€” the biggest gap for NOC engineers

Two deployment styles

MEMORISE

FSSO ports β€” learn these cold:

FSSOneeds Β§2.3
TRAP

The four classic "FSSO users can't get through" causes: