GNS3 / gns3-web-ui

WebUI implementation for GNS3
GNU General Public License v3.0
147 stars 52 forks source link

wireshark-capture in web-ui #1175

Open m-uwh opened 3 years ago

m-uwh commented 3 years ago

Hello,

I have seen at EVE-NG that it is possible to open Wireshark directly in the browser. Apparently a VM with Wireshark installed is started in the background and you can then start a capture without a Wireshark application on your own computer. Isn't this also a good idea for the GNS3 web client?

grossmj commented 3 years ago

Hi,

You should be able to do the same by installing the GNS3 web client pack: https://github.com/GNS3/gns3-webclient-pack/releases/tag/v1.0.0b3

Then in the web ui, right click on a link and start a new packet capture. Select "Start the capture visualization program" to automatically launch Wireshark.

Screenshot from 2021-07-07 22-02-40

m-uwh commented 3 years ago

Hi,

the idea is that you don't need an installation on the client. Then it would be possible to access a Gns3-Server only via web-ui and capture packets. The Wireshark application would run directly on the Gns3-Server and the visualization of the application is displayed on the html5 web page e.g. via a vnc connection to the Wireshark application VM.

grossmj commented 3 years ago

Hum sorry I overlooked that you said "directly in the browser". We definitely would like to do something similar but this will take some time.

AAm-kun commented 1 year ago

Still having the same issue in Arch linux.

grossmj commented 1 year ago

There may be a few web interfaces for Wireshark but haven't found anything that we could just integrate in GNS3: cloudshark is commercial and wireshark.io seems to be gone.

Please let me know if I missed anything interesting.

m-uwh commented 1 year ago

Mhm... I think EVE-NG starts a Docker container in the background, which then runs Wireshark. You would have to tell the container on which interfaces it should then capture, since you have initiated capturing on a specific link in the GNS3 interface. I could try to contribute, but I don't have much experience with this yet.