tcpdump -i any -n -v 'host the-ip-that-fails'
tcpdump: can't parse filter expression: syntax error
I slightly modified the command (sanitized):
# tcpdump -i any -v -n dst 'wan_ddns_IP' and src 'host the-ip-that-fails'
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
00:20:36.702535 IP (tos 0x0, ttl 58, id 56445, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 52420, seq 24, length 64
00:20:36.823062 IP (tos 0x0, ttl 58, id 56459, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 52431, seq 1, length 64
00:20:36.961680 IP (tos 0x0, ttl 58, id 56588, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 770, length 64
00:20:37.722878 IP (tos 0x0, ttl 58, id 57052, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 52420, seq 25, length 64
00:20:37.843012 IP (tos 0x0, ttl 58, id 57143, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 52431, seq 2, length 64
00:20:37.981701 IP (tos 0x0, ttl 58, id 57185, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 771, length 64
00:20:38.742942 IP (tos 0x0, ttl 58, id 57284, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 52420, seq 26, length 64
^C
7 packets captured
7 packets received by filter
0 packets dropped by kernel
With firewall stopped (/etc/init.d/firewall stop
):
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
00:24:55.124419 IP (tos 0x0, ttl 58, id 50973, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 1023, length 64
00:24:56.125627 IP (tos 0x0, ttl 58, id 51017, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 1024, length 64
00:24:57.122621 IP (tos 0x0, ttl 58, id 51111, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 1025, length 64
00:24:58.124824 IP (tos 0x0, ttl 58, id 51855, offset 0, flags [DF], proto ICMP (1), length 84)
'host the-ip-that-fails' > 'wan_ddns_IP': ICMP echo request, id 51819, seq 1026, length 64
^C
4 packets captured
4 packets received by filter
0 packets dropped by kernel
To me, both outputs seem the same. What is missing?