ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Flow-based and proxy-based inspection

Lesson 3.19 minIntermediateNovember 24, 2026
Open

This lesson is open to everyone. The other lessons open with a package: sign in or sign up, then choose a package.

Key points

  • Security profiles are attached to a policy and inspect only the content of traffic that passes an accept policy: antivirus, web filter, IPS and so on.
  • Flow-based: packets are inspected as they pass and the file is not fully collected. It is fast and uses few resources. It is the default mode of a new policy.
  • Proxy-based: the FortiGate accepts the connection itself, collects the whole object (file, page), inspects it and then forwards it. It is more thorough and offers more features, but takes more memory and time.
  • The mode is chosen per policy: set inspection-mode flow or proxy. A profile's feature-set must fit the mode of the policy.
  • IPS and application control always work the flow way. Some features (for example video filter) require a proxy-based policy.

The policy allows, the profile inspects

The policies so far looked at "who, where, which port". But both a work site and a malicious file can pass through port 443. Security profiles look inside the traffic.

ProfileWhat it looks atLesson
SSL/SSH inspectionOpening encrypted traffic14
Web filterThe category and address of a site15
DNS filterDNS queries16
Application controlWhich application it is17
AntivirusMalicious code in files18
IPSAttack signatures19
Email filterSpam20
Video filterVideo category and channel21

A profile is a separate object that is attached to a policy. The same profile can be used in many policies.

FGT-HQ
FGT-HQ # config firewall policy
FGT-HQ (policy) # edit 1
FGT-HQ (1) # set utm-status enable
FGT-HQ (1) # set av-profile "default"
FGT-HQ (1) # set ssl-ssh-profile "certificate-inspection"
FGT-HQ (1) # next
FGT-HQ (policy) # end

utm-status enable activates profiles in the policy. In the GUI this is not a separate switch: it turns on by itself when you enable any profile in the Security Profiles section.

Two ways of inspecting

Flow-based Server FortiGate Computer packet arrives → inspected → forwarded at once Proxy-based Server FortiGate Computer whole file collected → inspected → then forwarded
Figure 1 · Flow does not hold packets, while proxy first collects the object inside itself

Flow-based. The FortiGate inspects packets as they pass and forwards them at once. It does not collect the whole file, so the delay is small. When a threat is found it cuts the connection: the start of the file has already reached the computer, but since the end has not, the file is unusable.

Proxy-based. The FortiGate stands in the middle as a "proxy": it sets up one connection with the computer and a second one with the server. It first collects the whole file or page, inspects it, and forwards it if it is clean. If there is a threat, nothing goes to the computer and a warning page is shown instead.

Flow-basedProxy-based
SpeedFasterSlower
MemoryLittleA lot (objects are collected)
When a threat is foundThe connection is cutA replacement page is shown
FeaturesCore featuresAll, plus extras
DefaultYesNo

Choosing the mode

The mode is set separately in every policy:

FGT-HQ
FGT-HQ # config firewall policy
FGT-HQ (policy) # edit 1
FGT-HQ (1) # set inspection-mode proxy
FGT-HQ (1) # next
FGT-HQ (policy) # end

In the GUI, on the policy page: Inspection Mode: Flow-based / Proxy-based.

Profiles have their own mode too (feature-set). The rule is simple:

  • In a flow policy only profiles with feature-set flow can be selected.
  • In a proxy policy both flow and proxy profiles can be selected.
FGT-HQ
FGT-HQ # config antivirus profile
FGT-HQ (profile) # edit "AV-PROXY"
FGT-HQ (AV-PROXY) # set feature-set proxy
FGT-HQ (AV-PROXY) # next
FGT-HQ (profile) # end

If you cannot select a profile in the GUI, this is usually the reason: the policy is in flow mode and the profile is proxy.

Which feature in which mode

FeatureFlowProxy
IPS, application controlYes (always the flow way)Yes (still the flow way)
AntivirusYesYes, plus content disarm (CDR)
Web filterYesYes, with extras (for example time quotas)
DNS filterYesYes
Email filterBasic checksFull
Video filterDepends on the versionYes
ICAP, WAFNoYes

A practical rule: start with flow. Move to proxy only when you need a feature that flow does not have, and only in that policy.

Version difference: starting with FortiOS 7.4.4, proxy-based features were removed from small models with 2 GB of memory (for example 40F, 60F). If you plan a feature that needs proxy on a small model, read the release notes first.

Large files and ports

Which protocol is inspected on which port is defined by the protocol options profile (config firewall profile-protocol-options). The default profile lists HTTP 80, SMTP 25, FTP 21 and so on.

It also holds the oversize limit: files larger than this pass without inspection (or are blocked, depending on the setting), because a 4 GB file cannot be collected in memory. If antivirus "lets a big file through", this is why.

A short note on NGFW mode

Everything in this lesson refers to the default profile-based mode: profiles are attached to a policy. There is another mode, policy-based, in which the application and the site category are selected directly inside the policy. That mode works only with flow and requires central NAT. In this course we use profile-based mode.

🧪 Hands-on lab · Device: FortiGate-VM

Attaching a profile to a policy and the inspection mode

Policy 1 is ready (LAN → internet). Enable security profiles in it (set utm-status enable) and attach the built-in default antivirus profile and the certificate-inspection SSL profile. Then set the inspection mode of the policy to proxy.

Checked:

  • utm-status enable
  • av-profile default
  • ssl-ssh-profile certificate-inspection
  • inspection-mode proxy

▶ Start the lab

Check yourself

5 questions · answers are shown instantly · 3 correct answers complete the lesson

1What happens in flow-based inspection when a threat is found?

Flow does not collect the file; on a threat it cuts the connection and the file stays incomplete.

2What is the main cost of proxy-based inspection?

Because objects are collected, memory use and time increase.

3Where is the inspection mode chosen?

set inspection-mode flow|proxy is a policy setting.

4Can you select an antivirus profile with the proxy feature-set in a flow-mode policy?

A proxy policy accepts both kinds; a flow policy only flow profiles.

5Which feature works the flow way even in a proxy policy?

IPS and application control always use the IPS engine, the flow way.
Was this lesson useful?

Comments

Sign in to comment.