Stevko Posted June 26, 2018 Posted June 26, 2018 I would like to use the packet squirrel to capture and replay network traffic (for a couple of burning man art installations). The former is supported by tcpdump. Can it also do tcpreplay?
Stevko Posted June 26, 2018 Author Posted June 26, 2018 To be a little more specific about the application - I would like to capture and replay UDP packets containing art-net protocol datagrams destined for lighting controllers like the pixlite. Most likely only need to alter the timestamp. This would allow us to record light shows and replay them as backup for a high powered controller laptop.
Sebkinne Posted June 27, 2018 Posted June 27, 2018 Hi there, You can absolutely run tcpreplay on the Squirrel. Simply give it an internet connection, SSH in, and run "opkg update && opkg install tcpreplay".
Stevko Posted July 7, 2018 Author Posted July 7, 2018 Thanks for the opkg cli tip. I may need a bit more help. I have been trying to install tcpreplay but have not had any success. The default chaos_calmer/15.05 package set does not contain tcpreplay. https://archive.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/ I did manage to find tcpreplay-all in snapshots https://archive.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/ After fetching and opkg install'ing all 6 dependencies, I find the binaries at /usr/bin/... but trying to execute them results in a error message. Quote root@squirrel:/usr/bin# tcpreplay -ash: tcpreplay: not found root@squirrel:/usr/bin# tcprewrite -ash: tcprewrite: not found root@squirrel:/usr/bin# opkg info tcpreplay Package: tcpreplay Version: 4.2.5-1 Depends: libc, librt, libpcap Status: install user installed Architecture: ar71xx Installed-Time: 1530920071 Am i missing some kind of install flag? Is there a source for compatible binaries? -- TIA
Stevko Posted July 7, 2018 Author Posted July 7, 2018 P.S. - I did upgrade to the 1.2 firmware version too.
moliata Posted July 9, 2018 Posted July 9, 2018 Hello, can you post a result returned by the following command: ls /bin/{tcpreplay,usr/tcpreplay} Best regards, Ben.
Stevko Posted July 10, 2018 Author Posted July 10, 2018 Thanks for the reply Ben. I'm new to this community but have been watching Snubbs on DTNS and Twit forever. The result from that command is No such file or directory Quote root@squirrel:/# ls /bin/{tcpreplay,usr/tcpreplay} ls: /bin/{tcpreplay,usr/tcpreplay}: No such file or directory The package manager installed the binaries into /usr/bin Quote root@squirrel:/# ls -lat /usr/bin/tcpreplay -rwxr-xr-x 1 root root 114640 Nov 4 21:15 /usr/bin/tcpreplay root@squirrel:/# ls /usr/bin/tcp* /usr/bin/tcpbridge /usr/bin/tcpprep /usr/bin/tcprewrite /usr/bin/tcpcapinfo /usr/bin/tcpreplay /usr/bin/tcpliveplay /usr/bin/tcpreplay-edit root@squirrel:/# While trying to execute these binaries - I added sym links from /bin/tcpxxx to /usr/bin/tcpxxx but no combination will launch the program (although shell auto complete works). Quote root@squirrel:/# /bin/tcpreplay -ash: /bin/tcpreplay: not found root@squirrel:/# /usr/bin/tcpreplay -ash: /usr/bin/tcpreplay: not found root@squirrel:/# /usr/bin/tcpreplay-edit -ash: /usr/bin/tcpreplay-edit: not found
Stevko Posted July 13, 2018 Author Posted July 13, 2018 sorry but no, tried that and most every variation. Not knowing why it won't execute, I'm thinking of cleaning out all the local changes, altering the opkg config to include SNAPSHOTs and reinstall. Perhaps some kind of dependency is missing or a corrupted binary...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.