Curl does not show output in tcpdump

I am trying to diagnose a network problem with tcpdump. I ran a command

tcpdump -i eth0 -nS host nameless.host.io

When I issue commands tracerouteor pingto get in nameless.host.io, I see information from tcpdump, but when I use curlto extract content from the host

curl http://nameless.host.io/mycontent/data

The command curlreturns the expected contents, but I do not see a way out tcpdump. The host is definitely "external", so it should go out onto the wires.

Why tcpdumpdidn’t it help in a successful team curl?

+6
source share
2 answers

I can think of 3 different ways this can happen -

1: , --- , ​​ "" , tcpdump . , , --buffer-size=102400 ( 100 , , , , 1-4 )

2: "", . , curl, , , curl --interface eth0 URL - Linux Mac BSD sudo ifconfig ( , Windows -, idk)

3: tcpdump , - ... , tcpdump tcpdump , , curl, -Z curluser, tcpdump root, -Z root

+4

? (E, wlanX....)

: tcpdump -s 0 -i [interface] host nameless.host.io and tcp port http

0

Source: https://habr.com/ru/post/1015908/


All Articles