Nice article on how to do tcpdump on your Asus RT-N66U router.
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…
View original post 120 more words