cross-posted from: https://programming.dev/post/48972893
Please share any knowledge or experience that you have on packet inspection using smartphones. I would like to sniff at my switch, which is switching between my (two LANs)[1] and my ISP. For this, I have mirrored all ports that are in use to a port that is currently not in use. Can I simply buy one of those USB-C to Ethernet dongles and use
tcpdumpin Termux? Will Android recognize the dongle as a sniffable network interface? The phone is rooted.
I put “two LANs” within parentheses to denote that the two LANs are not being switched between. ↩︎


Welcome to the Android community on Lemmy. Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
A rooted android phone can run a whole bunch of classical Linux apps for networking including packet sniffing since it has a proper kernel with support for it
Right! Do you think the phone will recognize the USB to Ethernet dongle as a network interface?
Many years ago I was using USB WiFi Modem through micro USB port on my tablet. Since that worked, my guess is USB to Ethernet should be recognized as well.