I recently managed to get a small wifi router appliance where I can run OpenWRT firmware:
In OpenWRT, you can install many more Open Source packages. I installed netdata and tcpdump.
Here’s how: in OpenWRT’s web interface, I went to “System” → “Software” → click “Update Lists” button (then wait). Then in the “Download and install package:” textbox, one at a time I entered “tcpdump” and “netdata”, clicking the “OK” button each time, awaiting installation.
Then I connected my Android phone to the OpenWRT router’s wifi (the network interface name for that, inside the router, is “wlan0”).
Note: This OpenWRT wifi router is connected to an “upstream” router (the house’s main router, as supplied by the ISP, which does not run OpenWRT) by an ethernet cable connected to the leftmost ethernet port pictured above (which is the “WAN” port).
I can watch the Android phone’s traffic going through the wifi router somewhat by doing the following:
- I visited the web interface of netdata in my web browser (of my laptop, having a LAN connection to the router by the righthand ethernet port pictured above), by visiting the following URL:
- On the command line (ssh’ed in), I ran tcpdump with the following command:
tcpdump -i wlan0
Here’s a screenshot on my laptop of watching both netdata, and tcpdump, side by side, while my phone visits a website (and creates real-time activity seen by netdata and tcpdump):
(I couldn’t upload the above image, or Discourse would freeze on the “Processing the Image”, as it’s 1920x1280)