Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| transmission:l2tp [2025/03/23 04:09] – sthibaul | transmission:l2tp [2026/04/22 00:01] (Version actuelle) – sthibaul | ||
|---|---|---|---|
| Ligne 38: | Ligne 38: | ||
| * [[https:// | * [[https:// | ||
| - | * Observer | + | * Enregistrer un tcpdump dans des fichiers pour analyse post-mortem en utilisant une rotation des fichiers de sortie toutes |
| ``` | ``` | ||
| - | tcpdump -n -vvv -i any 'udp and port 1701 and | + | sudo tcpdump -w / |
| - | | + | |
| - | | + | |
| - | | + | |
| ``` | ``` | ||
| Ligne 50: | Ligne 47: | ||
| ``` | ``` | ||
| - | sudo tcpdump -v -n -i any 'udp and port 1701 | + | sudo tcpdump -v -n -i any 'udp and port 1701 and (len <= 40 or ( |
| - | and ( not (( udp[8] & 0x40 == 0 ) and udp[16] == 0x00 and udp[17] == 0x21) ) | + | ( not (( udp[8] & 0x40 == 0 ) and udp[16] == 0x00 and udp[17] == 0x21) ) |
| and ( not (( udp[8] & 0x40 == 0 ) and udp[16] == 0xFF and udp[17] == 0x03 and udp[18] == 0x00 and udp[19] == 0x21) ) | and ( not (( udp[8] & 0x40 == 0 ) and udp[16] == 0xFF and udp[17] == 0x03 and udp[18] == 0x00 and udp[19] == 0x21) ) | ||
| and ( not (( udp[8] & 0x40 != 0 ) and udp[18] == 0x00 and udp[19] == 0x21) ) | and ( not (( udp[8] & 0x40 != 0 ) and udp[18] == 0x00 and udp[19] == 0x21) ) | ||
| Ligne 80: | Ligne 77: | ||
| and ( not (( udp[8] & 0x40 != 0 ) and udp[20] == 0xa ) ) | and ( not (( udp[8] & 0x40 != 0 ) and udp[20] == 0xa ) ) | ||
| and ( not (( udp[8] & 0x40 != 0 ) and udp[18] == 0xFF and udp[19] == 0x03 and udp[22] == 0xa ) ) | and ( not (( udp[8] & 0x40 != 0 ) and udp[18] == 0xFF and udp[19] == 0x03 and udp[22] == 0xa ) ) | ||
| - | ' | + | ) )' |
| + | ``` | ||
| + | |||
| + | * Observer les messages de contrôle L2TP (établissement de tunnel/ | ||
| + | |||
| + | ``` | ||
| + | sudo tcpdump -v -n -i any 'udp and port 1701 and (len <= 40 or ( udp[8] & 0x80 != 0 ))' | ||
| ``` | ``` | ||
| Ligne 100: | Ligne 103: | ||
| ' | ' | ||
| ``` | ``` | ||
| + | |||
| + | * Observer les logins pap/chap: | ||
| + | |||
| + | ``` | ||
| + | tcpdump -n -vvv -i any 'udp and port 1701 and | ||
| + | | ||
| + | | ||
| + | | ||
| + | ``` | ||
| + | |||
| * Observer le dhcpv6: | * Observer le dhcpv6: | ||