We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

tcpdump, traceroute, wireshark [answered]

asked 2014-06-03 15:33:41 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-06-03 15:33:41 +0300

Laurent S. gravatar image

Maybe I didn't use the right key words, but it looks like I have not been able to find information on functions like tcpdump, traceroute or wireshark, or their substitutes, either in connection to Jolla or to Sailfish. Can you help me in that respect?

Thx, LS

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2014-11-03 11:29:48.308429

2 Answers

Sort by » oldest newest most voted
7

answered 2014-06-04 17:24:57 +0300

Kontio gravatar image

If you have developer mode enabled (which I assume you have, since you are searching for these tools), you can add the mer-tools repository, which contains tcpdump (and other Linux tools which normally are not needed on a phone):

ssu ar mer-tools
pkcon refresh force
# if you want to search for it... you can also straight install it...
pkcon search name tcpdump

you can then install it with:

pkcon install tcpdump

traceroute is considered to be deprecated by many network engineers. Use tracepath resp. tracepath6 instead, these 2 commands are available by default on the device. It does more or less the same, instead of ICMP it used UDP.

If you capture a network dump with tcpdump (-w filename) and write it to a file you can then download the dump to your computer and analyse the dump in Wireshark. So there is no need for Wireshark on the device. Wireshark is such a complex program with a lot of UI goodies (not optimized for touch screen UIs), it would not make sense to try to run that on a touch screen device.

edit flag offensive delete publish link more

Comments

tshark (cli version) is available in openrepos: https://openrepos.net/content/nieldk/tshark

szopin ( 2014-06-04 18:58:10 +0300 )edit

You can also do live analysis with remote capture. e.g. on windows host this works:

ssh root@jolla "tcpdump -s 0 -U -n -w - -i wlan0 not port 22" | wireshark -k -i -

(note: requires setting root password and allowing it to connect over ssh)

kimmoli ( 2015-05-12 01:14:23 +0300 )edit
2

answered 2014-06-03 15:43:57 +0300

maddler gravatar image

updated 2014-06-03 16:25:09 +0300

You can try having a look at openrepos.net. Nmap is available (NOTE: you'll also have to install subversion to make it work) and so ettercap. You can get traceroute installing inetutils pacakge (just like any other Linux distro). A few other networking tools could be available there, depending on what you need to achieve. The oder road, would be to build by yourself. That will require some work tho. Despite being available from any distribution they're not tools aimed at the casual user I'd say.

Hope this helps. William

edit flag offensive delete publish link more

Question tools

Follow
4 followers

Stats

Asked: 2014-06-03 15:33:41 +0300

Seen: 1,317 times

Last updated: Jun 04 '14