-2

How to capture network traffic packets inside windows container?

We have OpenShift Windows Container and not sure how to capture the network traffic like using WireShark inside the container

Please provide any example on how to do this.

From our container a TCP connection is made and after idle time of 10 mins this is timing out.

Are there any tools in the container that I could install?

Or from the worker node what is the command that can I use to get the tcpdump

I dont have any knowledge on how to debug this

James Z
  • 12,209
  • 10
  • 24
  • 44
user804401
  • 1,990
  • 9
  • 38
  • 71
  • Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. – Rob Jun 14 '23 at 17:45

1 Answers1

0

You can try WinDump.

You can use it in the terminal;

windump -i <interface> -w <output_file.pcap>

Replace <interface> with the name of the network interface you want to capture traffic from (e.g., eth0, Ethernet, etc.), and <output_file.pcap> with the desired name for the output file.

doneforaiur
  • 1,308
  • 7
  • 14
  • 21