Tag Archives: network

Monitoring ASUS RT-N66U

To capture all traffic through the router for analysis

Install Merlin firmware build: http://www.lostrealm.ca/tower/node/79

Enable SSH server on router. Connect.

Install USB stick. Forgot how but not too hard. Had to format to ext2 using special SW on windows.

run “entware-setup.sh” as stated in https://github.com/RMerl/asuswrt-merlin/wiki/Entware

“opkg install tcpdump” <– installs tcpdump from entware

“tpcdump -c 1000 -i any -w mydump” while your working directory is on your USB stick. This causes the next 1000 packets on any interface to be saved to the file “mydump” in the directory where you run this command.

Login to your router web interface. Go to USB application->Servers Center->FTP Share->Enable FTP+Share with Account. Share the folder on your USB stick where you put the dump file. Or just share the whole stick.

Now use your FTP client (winscp is fine) to connect to your router.  Download your dump file.

Go back to the router web UI and disable FTP and account share.

Load your dump file into wireshard or whatever you like to use.

To check which process on your windows is responsible for traffic, go to task manager, set to show column process id. The do “netstat -aon” and look up the matching port number and process id. Then go to task manager and match the process id for the port of interest to the process id column there.

If you know a nice tool that gives good overview and pretty graphs, let me know. Even better if it could read several separate files, combine them for statistics etc. etc. Just to see what is going on in my network. Paranoid tinfoil hat stuff.