Open simple9s opened 7 months ago
I encountered the same problem on IPv4 on Linux (with traceroute patched to support non-privileged execution):
~ @ pip-run jaraco.net
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> isp = importlib.import_module('jaraco.net.ping-isp')
>>> isp._patch_traceroute_privilege()
>>> isp.icmplib.traceroute('www.google.com')
[<Hop 13 [142.251.35.164]>]
Oh! Reading this doc, I see that "traceroute" needs privileged execution for the TTL to work. Interestingly, here's what I've found:
privileged=False
causes the undesirable behavior (only the last hop is recorded).privileged=False
and get reasonable results back from a traceroute.Hi @simple9s,
The behavior you are seeing on Windows is most likely related to your firewall. Can you try to temporarily deactivate it during the test and try again? There are other issues on this subject (#7, #8 and #10).
Hi Valentine, thanks for the great library.I'm doing an experiment,and I had a small problem. The traceroute under ipv6 only displays the last hop. But my use of windwos tools is normal.
Thanks again and regards.