User Tools

Site Tools


informatique:fortinet:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatique:fortinet:start [2025/11/14 08:04] – [OSPF] authentification MD5 pteuinformatique:fortinet:start [2026/09/14 14:45] (current) – [sniffer packet] pteu
Line 1960: Line 1960:
 # Match packets with SYN and no ACK flags set: # Match packets with SYN and no ACK flags set:
 diagnose sniffer packet internal "tcp[13] & 18 == 2" diagnose sniffer packet internal "tcp[13] & 18 == 2"
 +
 +# Match packets with FIN flag set:
 +diagnose sniffer packet any "tcp[13] & 1 != 0" 4 100 a
 +# ou plus simplement :
 +diagnose sniffer packet any "tcp[tcpflags] & tcp-fin != 0"
  
 diagnose debug app hatalk 255 diagnose debug app hatalk 255
Line 1973: Line 1978:
 </code> </code>
  
 +Liste des tous les noms de constantes utilisables avec l'option **tcpflags** (syntaxe BPF, plus lisible) :
 +  * SYN (Demande de connexion) : ''tcp[tcpflags] & tcp-syn != 0''
 +  * ACK (Acquittement) : ''tcp[tcpflags] & tcp-ack != 0''
 +  * FIN (Fermeture) : ''tcp[tcpflags] & tcp-fin != 0''
 +  * RST (Reset / Réinitialisation forcée) : ''tcp[tcpflags] & tcp-rst != 0''
 +  * PSH (Pousser les données) : ''tcp[tcpflags] & tcp-psh != 0''
 +  * URG (Données urgentes) : ''tcp[tcpflags] & tcp-urg != 0''
 +
 +Exemple pour matcher les paquets SYN ou FIN :
 +<code bash>
 +diagnose sniffer packet any "tcp[tcpflags] & (tcp-syn|tcp-fin) != 0" 4
 +</code>
 +
 +Elle ne remplace pas certaines expressions plus optimisables en chiffres :
 +<code bash>
 +# Match packets with SYN and no ACK flags set:
 +diagnose sniffer packet internal "tcp[13] & 18 == 2"
 +</code>
 =====Packet capture===== =====Packet capture=====
  
informatique/fortinet/start.txt · Last modified: 2026/09/14 14:45 by pteu