Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traceroute: socket: Operation not permitted #86

Closed
thomasahle opened this issue Apr 29, 2016 · 1 comment
Closed

traceroute: socket: Operation not permitted #86

thomasahle opened this issue Apr 29, 2016 · 1 comment

Comments

@thomasahle
Copy link

I'm trying to run traceroute, but I get the error "traceroute: socket: Operation not permitted".
I read #74 and it looked like I should maybe update termux-tools, so I did, but it didn't help:

$apt install termux-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
termux-tools is already the newest version (0.27).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ ping google.com
PING google.com (212.98.120.37) 56(84) bytes of data.
64 bytes from 212.98.120.37: icmp_seq=1 ttl=59 time=9.76 ms
64 bytes from 212.98.120.37: icmp_seq=2 ttl=59 time=14.9 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 9.761/12.366/14.971/2.605 ms
$ traceroute google.com
traceroute: socket: Operation not permitted
$
@fornwall
Copy link
Member

fornwall commented May 4, 2016

It's not possible to have traceroute without root permissions unfortunately.

There is a non-root alternative in the tracepath utility:

$ apt update
$ apt install tracepath
$ tracepath google.com
1:  android-9cfccccc54b77f66                              1.077ms pmtu 1500
1:  router.asus.com                                       2.013ms 
1:  router.asus.com                                       1.194ms 
2:  gw10.a400.priv.bahnhof.se                             2.697ms 
3:  ti3080d400-xe0-1-2.ti.telenor.net                    12.424ms asymm  6 
4:  a400-gw-c.bahnhof.net                                 5.233ms 
5:  a400-gw.bahnhof.net                                  20.228ms 
6:  100.64.1.49                                           2.858ms 
7:  h-213-80-104-104.na.cust.bahnhof.se                   4.482ms 
8:  ste-cgn-ar1.sto-cr1.bahnhof.net                       4.119ms 
[...]

@fornwall fornwall closed this as completed May 4, 2016
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants