Skip to content

Instantly share code, notes, and snippets.

@hmajid2301
Created June 4, 2020 10:48
Show Gist options
  • Save hmajid2301/cfc641381a6e72794247973d5c49444f to your computer and use it in GitHub Desktop.
Save hmajid2301/cfc641381a6e72794247973d5c49444f to your computer and use it in GitHub Desktop.
This how you can view traffic using WireShark in a Docker container. What we want to do is find the interface name on the host machine so WireShark can listen for traffic on that interface. Open Wireshark then in the example below look for the interf
docker exec -it <container_name> cat /sys/class/net/eth0/iflink
# 8
ip link | grep 8
# 8: veth0561247@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-6726433a4ff3 state UP mode DEFAULT group default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment