Docker Community Forums

Share and learn in the Docker community.

How to send packets using TCPReply within containers

docker

(Epic771) #1

Hello,

So I’ve been looking for sending packets using tcpreplay tool within the Docker containers. I am building a tool and to test that I need to send some specific packets.

So, l have launched two containers. i.e:

1: My_Tool (172.17.0.2)
2: SendPcap (172.17.0.3)

Launch Command: docker run -ti ubuntu:latest

Now, when i am sending captured pcap using tcpreplay tool using 2: SendPcap container (tcpreply -i eth0 packets.pcap) i am not getting any packets on the 1: My_tool container.

I tried capturing packets using tcpdump, tshark etc… but not even single packet i am receiving. Am i missing something here? Same, demo working perfectly on two VM’s.

Is this even possible in the Docker containers?