ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
266 stars 46 forks source link

The traceroute under ipv6 only displays the last hop #74

Open simple9s opened 7 months ago

simple9s commented 7 months ago

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. image But my use of windwos tools is normal. image

Thanks again and regards.

jaraco commented 4 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]>]
jaraco commented 4 months ago

Oh! Reading this doc, I see that "traceroute" needs privileged execution for the TTL to work. Interestingly, here's what I've found:

ValentinBELYN commented 2 months ago

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).