Skip to main content
usmansa1
Visitor III
June 15, 2024
Question

Flow based inspection packet snapshot ?

  • June 15, 2024
  • 2 replies
  • 1142 views

Hi,

 

While studying flow-based inspection, I read that FGT takes the snapshot of the packet ? I am confused that what is the snapshot of the packet ? and how the packet is processed using the flow-based inspection ? 

 

Because taking snapshot is taking the copy of the packet and the copy of the packet is buffered and the whole traffic stream needs to be captured to match against the signature so how this mode is efficient ?

 

What i read is that FGT takes the snapshot of the packet and compare it against the pre-existing signature database and held the last packet ? Now this approach may be valid for TCP because TCP always sends the connection termination request but UDP doesnt send the connection termination request so last packet may not be known, therefore in case of UDP how the FGT realize that this is the last packet in the stream ?

2 replies

amrit
Staff & Editor
Staff & Editor
June 15, 2024

1. What is packet snapshot in fortigate 

A packet snapshot is nothing but inspecting random packets from the payload. When a firewall policy's inspection mode is set to flow, traffic flowing through the policy will not be buffered by the FortiGate. https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/659145/flow-mode-inspection-default-mode

 

2. How firewall tracks UDP packets 

    Even though UDP is a stateless protocol, FortiGate still keeps track of 2 different 'states'.
 

State

Value

UDP Reply not seen

0

UDP Reply seen

1

 

UDP time to live (TTL) - Expire Timer, is by default 180 seconds.

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-FortiGate-session-table-information/ta-p/196988

 

usmansa1
usmansa1Author
Visitor III
June 17, 2024

hey mate thanks for answering the question but then there is another question comes into my mind, that for example if an attack vector comes in and the packets are encrypted then how does the flow based inspection will detect because those packets are encrypted and only visible information is layer 3 ?

amrit
Staff & Editor
Staff & Editor
June 17, 2024

We recommend using deep inspection for the SSL encrypted traffic https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/122078/deep-inspection.