Hi, New to Wireshark. I would like to capture network packets on my own home network for educational purpose. I've read that you could install wireshark on the Wifi router itself that powered by either DD-WRT or OpenWRT firmware. So, you don't need another client to capture packets. However, I can't find any detailed tutorial on this. If anybody can provide these info: a) Is there any way for the router to do it's primary job (provide wifi connection to clients), and capturing packets at the same time? b) How about promiscuous mode? c) Are SD card and USB drive good enough for the storage? d) If I schedule to run wireshark 6 hours a day at around 200kbps data average, will this setup put too much load to the wifi router? e) Is there any consumer grade wifi router that is capable to do this setup? Can you recommend some? Thanks! asked 03 Jun '15, 13:47 TrafalgarLaw |
One Answer:
The real benefit of Wireshark is the GUI and what you can do therein. However, you won't be able to use the GUI version of Wireshark on the router, so there is no benefit for you to have Wireshark on DD-WRT or OpenWRT. I would do the capturing on the router with tcpdump and the analysis on Windows/MacOS/Linux. tcpdump is available on any Unix like system, which includes DD-WRT and OpenWRT. To answer your questions: a.) Sure, any multitasking OS is able to do that, which includes *WRT. Regards answered 03 Jun '15, 15:38 Kurt Knochner ♦ |
(Unless you have the X11 client library, and GTK+/Qt and the libraries they depend on, installed on the router, and ensure that when you run Wireshark the DISPLAY environment is set to point to the X server on your desktop machine. Whether you will be able to fit all that software on the router is another matter, and we can't really help much with such a significant project. I'd follow Kurt's suggestions instead.)
Sure X11 DISPLAY forwarding would work, but I doubt that X11 is available for DD-WRT and/or OpenWRT. Although I did not check yet, it would just not make much sense to have X11 on those devices.
Thanks, and which interface wireshark/tcpdump should listen to? I believe the router itself decodes wireless packets and sending them to dsl phone line output, can we tap at this point? Thanks again!
You have a DSL modem. DD-WRT does not work on DSL modems: http://www.flashrouters.com/blog/2015/02/03/best-options-for-using-vpn-ddwrt-with-modem-router-combo/
As @Amato_C said: There is no (easy) way to run a custom linux on a router with inbuilt DSL modem. So, your options are:
Regards
Kurt