web-dev-qa-db-fra.com

Pourquoi la demande d'écho n'apparaît pas dans tcpdump?

J'ai deux segments de réseau liés à l'aide d'un tunnel IPsec-VPN:

  • NET # 1: A.B.0.0/16 avec LAN Gateway A.B.0.1
  • NET n ° 2: x.0.0/16 avec la passerelle LAN X.Y.130.1

J'entraîne un ping de A.B.0.1 à X.Y.130.100 et a commencé un TCPDump. Cela montre plus tard Echo Réponse des paquets, mais cela ne montre pas les paquets de demande d'écho.

Est-ce normal? Comment puis-je aussi obtenir les paquets de demande d'écho aussi?

Voici une session d'échantillons de tests:

Le ping:

# ping x.y.130.100
PING x.y.130.100 56(84) bytes of data.
64 bytes from x.y.130.100: icmp_seq=1 ttl=63 time=1.87 ms
64 bytes from x.y.130.100: icmp_seq=2 ttl=63 time=1.38 ms
64 bytes from x.y.130.100: icmp_seq=3 ttl=63 time=1.27 ms
64 bytes from x.y.130.100: icmp_seq=4 ttl=63 time=3.93 ms
64 bytes from x.y.130.100: icmp_seq=5 ttl=63 time=1.15 ms
64 bytes from x.y.130.100: icmp_seq=6 ttl=63 time=1.16 ms

Le TCPDump:

# tcpdump -nn 'icmp and (src a.b.0.1 or dst a.b.0.1)'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
13:54:27.607103 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 1, length 64
13:54:28.608433 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 2, length 64
13:54:29.610167 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 3, length 64
13:54:30.614716 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 4, length 64
13:54:31.613417 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 5, length 64
13:54:32.615054 IP x.y.130.100 > a.b.0.1: ICMP echo reply, id 22607, seq 6, length 64
8
Younes

Y a-t-il une chance que les réponses soient sur une interface différente (peut-être une pour IPSec?) De celle (ETH0) que vous exécutez TCPDump?

2
JamesHannah