I need to monitor TCP networking between two hosts which does not have tcpdump installed, and I cannot install on them.
Is it possible to do so with tcpdump using some known rule ?
I need to monitor TCP networking between two hosts which does not have tcpdump installed, and I cannot install on them.
Is it possible to do so with tcpdump using some known rule ?
Yes, you have several options:
If you cannot have tcpdump on any of the hosts, or modify their configuration in any way, then to dump packets you need to take them off the network. The normal "enterprise" way to do that is with port mirroring, but of course you need a network switch with that feature and a third server with tcpdump installed. Otherwise a hub can do it if that's all you have.
If you have other software installed, like netcat, and you only need one port or two, you could probably send your traffic off-host to be sniffed and back again, but if you are analyzing network problems this would be more of a problem than a problem-solver. Why can you not install tcpdump?
The other way around the problem is to ask what you really want to do. If you do not need to see the packet contents, maybe you can gather enough information using tools normally installed by default, such as netstat, route, lsof, ss . . .