FCSS_NST_SE-7.4 Cheatsheet
Network Security 7.4 Support Engineer
Download free PDFSystem diagnostics and resource pressure
Choose the right diagnostic view
- **Packet capture** shows where packets arrive and leave; **debug flow** explains forwarding decisions. **Application debug** exposes a daemon's protocol exchange. Correlate them with session and event logs.
- Work in the correct **VDOM** and filter by peer, address or session. Enable a focused debug, reproduce the failure, then use **diagnose debug disable** and **diagnose debug reset**.
- **diagnose sys top** reports process identity, state, CPU and memory consumption. Its header describes system utilization and uptime; the process list identifies the busy daemon. Press **m** to sort by memory.
- A process in **R** state is running or runnable; that state alone is not a fault. Sustained **ipsengine** CPU can reflect inspection load. Correlate traffic rate, signatures and worker utilization before restarting engines.
Separate process and kernel memory
- **diagnose hardware sysinfo memory** separates free memory, buffers, cache and kernel allocations. Cache can be reclaimable; **Inactive** pages are not permanently unusable memory.
- **Slabs** are kernel object caches, including session structures. Compare object size, allocated objects and slab pages; process memory percentages do not account for every kernel allocation.
- **diagnose sys session stat** summarizes sessions, setup rate and allocation failures. **memory_tension_drop** and allocation-related drops point toward resource pressure; rising deletion counters need correlation with event logs.
Conserve thresholds and inspection behavior
- **Red** is the entry threshold for memory conserve mode. **Green** is the lower exit threshold. This separation provides hysteresis and prevents rapid switching around one threshold.
- **Extreme** memory pressure causes new sessions to be dropped. Distinguish this condition from red-threshold conserve mode, where inspection behavior depends on the relevant fail-open settings.
- **av-failopen** controls low-memory antivirus handling. **pass** permits bypass; **off** refuses new AV sessions. **IPS fail-open** is a separate control, so an AV setting does not establish IPS behavior.
- Capture memory, session and daemon statistics before recovery actions. Restarting an inspection engine or disabling a security profile changes traffic handling; confirm the cause and validate inspection after recovery.
Sessions and packet forwarding
Read the session in both directions
- **diagnose sys session list** shows protocol, lifetime, counters, policy and forwarding state. Read **origin** and **reply** tuples together to identify the initiator, destination and any translated addresses.
- **hook**, **dir** and **act** describe processing and NAT actions. **dev** and gateway fields describe forwarding interfaces and next hops; a gateway is not necessarily the remote application endpoint.
- **policy_id** identifies the matched firewall policy. Authentication, inspection and offload flags describe separate properties; a permitted session is not proof that every security profile inspected its payload.
- **proto_state** is protocol-specific. An ordinary established TCP session commonly displays **01**; do not interpret the same digits as the same state for UDP or ICMP. Use direction counters to confirm replies.
Helpers, expectations and hardware paths
- A session helper can create an **expectation** for a related connection whose port is negotiated dynamically. This temporary pinhole has a master relationship, policy context and timeout; it is not a general allow rule.
- **NPU/offload** fields describe hardware handling in each direction. Read them with CPU inspection flags and the platform's processor type; one numeric offload value does not identify every hardware family.
- Packets forwarded entirely in hardware may be absent from a CPU **sniffer** or debug flow. Check **diagnose npu np6 port-list** for port mapping on NP6 platforms.
- For a controlled capture, disable **auto-asic-offload** on the relevant policy and establish a fresh test session. Existing offloaded sessions may retain their path; restore acceleration after testing.
Route changes and existing sessions
- For sessions without SNAT, a routing change normally flushes cached route information for a new lookup. Interface **preserve-session-route** retains session routing rather than moving traffic merely because another route becomes preferred.
- **SNAT sessions** normally retain their outgoing path while the old route remains active. **snat-route-change** enables a new lookup after routing changes and can change the translation; an established application connection may still break.
- **auxiliary-session** adds related session state to accommodate interface or route changes in ECMP and load-balanced paths. It is disabled by default in this release family; enabling it does not create a session for every packet.
- Test failover with both a changed route preference and the applicable session settings. Confirm the **existing session** changed path; a successful new connection alone does not demonstrate session migration.
Reverse paths and local traffic
- **Strict RPF** requires the best reverse route to use the incoming interface. **Feasible RPF** accepts an eligible reverse path through that interface even if it is not the preferred path. Both examine reachability of the source.
- A default route can satisfy an RPF lookup only through an acceptable incoming interface. **Proxy ARP** answers address-resolution requests; it does not create a missing IP route or bypass RPF.
- **Asymmetric routing** can defeat normal stateful inspection when FortiGate sees only part of a connection. Prefer symmetric paths; enabling **asymroute** changes security processing and does not reconstruct unseen packets.
- **iprope_in_check() check failed** warrants checking traffic destined to FortiGate itself, interface administrative access, trusted hosts and local-in policy. VIP/IP-pool address handling can also alter whether traffic is considered local.
Routing and adjacency troubleshooting
Routing database versus forwarding table
- The **routing database** includes candidate routes; the active routing table selects routes, and the kernel **FIB** supplies forwarding entries. A configured route is not necessarily installed or usable.
- For the same prefix, lower **administrative distance** is preferred. Among otherwise equivalent FortiGate static routes, lower **priority** is preferred. Packet forwarding uses the **longest matching prefix**.
- An interface down, failed configured health check, unresolved next hop or a better competing route can exclude a static route. Check interface state, route eligibility and kernel installation separately.
- **ECMP** requires eligible equal-cost paths, including matching static-route distance and priority. Changing only distance or only priority may leave one preferred path instead of a load-balanced pair.
Policy routes and forwarding evidence
- **get router info routing-table database** shows route candidates. Compare it with the active routing table and **diagnose ip route list** to separate routing-daemon decisions from kernel forwarding.
- **diagnose firewall proute list** exposes policy-routing entries. Distinguish administrator policy routes, **ISDB** matches and **SD-WAN** rules using their fields and configuration context.
- A **policy route** can match incoming interface, addresses, protocol and ports to select an egress path. Check its sequence and next-hop reachability; a matching entry alone does not prove packets can be forwarded.
OSPF neighbors, elections and LSAs
- **OSPF uses IP protocol 89**. On an ordinary shared subnet, check compatible addressing, area, network type, hello/dead intervals and authentication. A password mismatch differs from an authentication-type mismatch.
- **2-Way** means bidirectional hello visibility; **Full** means database synchronization. Two DROther routers on a broadcast segment can remain 2-Way normally; ExStart/Exchange problems suggest checking MTU and database exchange.
- Broadcast networks elect a **DR** and **BDR**; point-to-point links do not. Higher interface priority wins, then higher router ID. Priority **0** makes a router ineligible.
- **DR election is nonpreemptive**: a newly arriving higher-priority router does not displace the current DR. When the DR fails, the BDR takes over before other eligible routers compete for the vacant BDR role.
- **Type 5 LSAs** carry external routes originated by an ASBR. A stub area excludes them; a network with no external redistribution may have none. Inspect **get router info ospf neighbor** and the LSDB before blaming filtering.
BGP transport, state and advertisements
- **BGP uses TCP 179**. Check reachability, return routes, remote AS, update source, multihop requirements and authentication before evaluating advertised prefixes.
- Progression is **Idle → Connect/Active → OpenSent → OpenConfirm → Established**. TCP must succeed before OPEN exchange; OpenConfirm waits for KEEPALIVE. A zero received-prefix count can still mean an established session.
- **get router info bgp summary** reports neighbor state or a received-prefix count. Different table-version values alone do not prove adjacency failure. Use detailed neighbor output to locate the failed negotiation stage.
- **advertised-routes** shows routes sent by the local router to that neighbor. Routes learned from a peer and routes selected for forwarding are different views; outbound or inbound policy can suppress prefixes.
- With **network-import-check** enabled, a BGP **network** statement needs the exact matching prefix in the routing table. Disabling that check permits origination without that match; confirm actual reachability before doing so.
- BGP origin codes distinguish **IGP (i)**, **EGP (e)** and **incomplete (?)**. Redistribution commonly produces incomplete origin. A soft reset reapplies supported routing policy without repairing TCP, AS or prefix-configuration errors.
Authentication and identity troubleshooting
LDAP bind, search and authorization
- **LDAP authentication** commonly binds with a search account, searches for the user DN, then binds with the supplied user credentials. Group retrieval supplies authorization information; successful lookup alone does not validate a password.
- Check **base DN**, username attribute and search filter. A display name and **sAMAccountName** are different identifiers; the required login format follows the configured search attribute.
- **fnbamd** debug distinguishes connectivity, search and bind failures. For failed user binds, check password, account disablement, lockout and expiration. For TLS failures, check server trust, name matching and reachability.
SAML requests, responses and assertions
- **FortiGate is the SP** and delegates authentication to the **IdP**. An AuthnRequest asks for sign-in; the returned Response contains an **Assertion** with identity and attribute statements.
- **diagnose debug application samld -1** reveals SAML processing. Inspect entity IDs, ACS/reply URLs, signing certificate, audience, destination and time validity; map username and group attributes to FortiGate expectations.
- Distinguish **SP endpoints**, IdP SSO endpoints and browser addresses in a trace. A SAML exchange alone does not identify the IdP's directory backend or establish whether the protected service is SSL VPN or another portal.
FSSO collection and workstation verification
- **DC Agent mode** forwards logon information to a collector; **agentless polling** queries directory events without a DC agent. FortiGate uses learned user-to-IP mappings and group information for policy matching.
- FortiGate-to-collector connectivity normally uses **TCP 8000**. Check the configured listening port, address, firewall path and shared password. A successful ping proves neither TCP service availability nor authentication.
- **Not Verified** means the collector could not confirm the workstation logon state. Check workstation DNS resolution, reachability, permissions, Remote Registry availability and access to Windows services on **139/445**.
- Separate **collector connection failure**, missing logon events, failed workstation verification and missing group matches. Use **fssod** debug on FortiGate and collector logs to find the failed boundary.
TLS and security inspection
Certificate inspection versus payload inspection
- **Certificate inspection** examines TLS handshake information and certificates without decrypting application content. It can support hostname-based filtering but cannot expose an infected file inside HTTPS to antivirus.
- **Deep inspection** decrypts supported TLS traffic so security profiles can inspect payloads. Clients must trust the inspection CA; verify the matched policy, inspection profile and any exemptions.
- **SNI** is the hostname supplied by the client; **CN/SAN** identify names in the server certificate. Name mismatches and server-name checks depend on the SSL profile. A mismatch does not inherently mean all inspection is bypassed.
- Even with decryption, check **oversize limits**, archive depth, unsupported formats and AV database/profile selection. Decryption provides visibility; the antivirus profile determines scanning behavior.
URL actions and inspection scope
- **Static URL filtering**, FortiGuard category filtering and web-content filtering are distinct controls. A static **allow** permits later filtering; it is not the same as an **exempt** action that bypasses selected further checks.
- A category block can still stop a URL allowed by a static entry. Read entry type, matching pattern, action and inspection mode together before explaining a web-access result.
- When a profile appears inactive, confirm the session's actual **policy_id**, profile attachment and SSL visibility. Check **webfilter-force-off** and its applicable scope; policy attachment alone does not establish active web filtering.
FortiGuard ratings and IPS load
- **diagnose debug rating** shows rating-service servers, flags, timing and failure information. Distinguish a DNS-resolved initial server from the server selected for rating traffic; do not choose solely by the lowest RTT.
- Verify **service.fortiguard.net** resolution, routing, service transport, entitlement and response failures. A resolved IP address establishes DNS success, not a working category lookup.
- **IPS high CPU** may reflect traffic volume, expensive signatures or abnormal traffic. Compare worker statistics and policy inspection scope. Restarting engines treats a symptom; reducing inspection also reduces protection.
IPsec negotiation and data paths
IKE setup and peer matching
- **IKEv2 starts with IKE_SA_INIT**, negotiating algorithms and exchanging nonces and Diffie-Hellman values. **IKE_AUTH** authenticates the peers and normally establishes the first CHILD_SA.
- **CREATE_CHILD_SA** creates or rekeys child SAs and can include another DH exchange. IKEv1 main/aggressive mode and **XAuth** are separate concepts; do not apply their negotiation model to IKEv2.
- Compare IKE version, encryption, integrity/PRF, DH group and authentication method. A **no proposal chosen** failure requires a compatible supported proposal, not an arbitrary stronger cipher.
- For multiple dialup definitions on one endpoint, **peer identity** and authentication distinguish eligible tunnels. In IKEv1 aggressive mode identity arrives early; different PSKs alone do not guarantee correct tunnel selection.
SA state, selectors and liveness
- A **route-based VPN** uses a tunnel interface referenced by routes and firewall policies. Check phase 1 configuration separately from phase 2 selectors and the policies permitting inner traffic.
- **diagnose vpn tunnel list** and **get vpn ipsec tunnel details** expose selectors, SAs, counters and offload information. An established IKE SA does not prove an IPsec child SA exists or that payload traffic is flowing.
- **DPD** detects an unresponsive peer; missing acknowledgments can remove a tunnel. Distinguish DPD failure from proposal mismatch, SA lifetime expiry and failed rekey by reading the event sequence.
- **SPI values** identify unidirectional SAs; inbound and outbound SPIs normally differ. **Anti-replay** uses sequence numbers and a receive window to reject duplicates; it is separate from encryption and hardware offload.
Tunnel up, traffic missing
- **UDP 500** carries initial IKE; **UDP 4500** carries NAT-T traffic. Native **ESP uses IP protocol 50**. A port-500-only capture can miss active NAT-T traffic and never shows native ESP payloads.
- When the tunnel is up, check inner routes, source/destination selectors, firewall policy, NAT and return path. Compare **enc/dec counters** at both ends while generating one known test flow.
- Outbound encryption on one peer without inbound encrypted packets on the other suggests a transport path problem. Check ESP or UDP 4500 filtering before treating the issue as an IKE negotiation failure.
- **npu_flag** and SA installation messages indicate acceleration state or direction, not end-to-end delivery. Correlate NPU installation, anti-replay errors and per-direction packet counters; hardware offload can hide packets from CPU capture.
HA, Security Fabric and automation
Election, synchronization and session continuity
- **get system ha status** reports members, roles, uptime and configuration synchronization. Check heartbeat links, monitored interfaces, priorities and **override** behavior when explaining an election.
- With **override disabled**, cluster age can keep the surviving unit primary after its peer rejoins. With override enabled, configured priority has greater influence. A monitored data-link failure differs from loss of heartbeat communication.
- **Out-of-sync** indicates configuration disagreement; it does not by itself prove a member must leave the cluster. Compare checksums and relevant configuration before forcing synchronization.
- **Session pickup** can preserve eligible sessions during failover. Inspect synchronization and protocol support; NAT or application inspection alone does not prove whether a particular session will survive.
Fabric transport and authorization
- A **downstream FortiGate** connects to its upstream FortiGate using **TCP 8013** by default. Verify reachability, upstream address and Security Fabric/FortiTelemetry access on the receiving interface.
- **Authorize the downstream device** at the appropriate root/upstream control point. Transport connectivity and device authorization are separate requirements.
- **Neighbor Discovery** discovers nearby devices; it is distinct from the persistent FortiTelemetry connection. Troubleshoot discovery, connection establishment and authorization separately.
Triggers, actions and test evidence
- An **automation stitch** binds a trigger to one or more actions. Examples include capturing diagnostics on CPU or memory events and attaching the results to a notification.
- **Sequential actions** support ordered execution and supported output substitution. **Parallel actions** can run independently; a delay in one action does not impose an execution order on other parallel actions.
- **diagnose automation test** exercises a stitch and may execute real actions, including failover. Inspect action results and event logs; a test invocation alone proves neither successful completion nor absence of logging.