how can i use wireshark with WSL (Windows Subsystem for Linux)

asked 2020-10-08 23:24:38 +0000

smrsh gravatar image

I'm using wsl, windows subsystem for Linux but I'm not able to trace my network from Wireshark

edit retag flag offensive close merge delete

Comments

Wireshark running on Windows or Wireshark-for-Linux running under WSL?

WSL 1 or WSL 2?

Guy Harris gravatar imageGuy Harris ( 2020-10-08 23:47:08 +0000 )edit

The Wireshark is running on windows. WSL1

smrsh gravatar imagesmrsh ( 2020-10-08 23:55:09 +0000 )edit

So which network are you trying to trace? Are you saying you're not seeing any network traffic (whether it involves WSL or not), or just not seeing any network traffic from WSL programs?

Guy Harris gravatar imageGuy Harris ( 2020-10-09 00:20:53 +0000 )edit

I can't trace any networks at all for example, when I run the "ping google.com" command, I can't see any activity I'm my Wireshark application

smrsh gravatar imagesmrsh ( 2020-10-09 00:30:53 +0000 )edit
  1. Which WSL image? (located in /etc/os-release and/or /etc/lsb-release)
  2. Which Wireshark? (full output from wireshark -v or Help->About Wireshark)
  3. You can successfully ping google.com from a windows command prompt? (so DNS and plumbing ok)
  4. You can successfully ping google.com from a WSL prompt? (so DNS and plumbing ok)
Chuckc gravatar imageChuckc ( 2020-10-09 01:12:21 +0000 )edit