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
Next revision
Previous revision
informatique:fortinet:start [2025/10/31 11:01] – [Interfaces] MSS tuning pteuinformatique:fortinet:start [2026/09/14 14:45] (current) – [sniffer packet] pteu
Line 693: Line 693:
                 set interface "SRV-iVDOM"                 set interface "SRV-iVDOM"
                 set ip 172.16.15.2                 set ip 172.16.15.2
-                set md5-key 1 "totopwet"+                set md5-key 1 "totopwet"   # note: la syntaxe varie en fonction de la version de firmware
                 set priority 0                 set priority 0
             next             next
Line 715: Line 715:
 end end
 </code> </code>
 +
 +Pour configurer l'authentification MD5 : [[https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-configure-OSPF-MD5-authentication/ta-p/191861|Technical Tip: How to configure OSPF MD5 authentication]]
  
 Diag : Diag :
Line 1958: 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 1971: 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.1761908501.txt.gz · Last modified: 2025/10/31 11:01 by pteu