Code Monkey home page Code Monkey logo

Comments (5)

jaraco avatar jaraco commented on August 29, 2024

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]>]

from icmplib.

jaraco avatar jaraco commented on August 29, 2024

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

  • On Linux, setting privileged=False causes the undesirable behavior (only the last hop is recorded).
  • On Windows, privileged is forced to False, so presumably may be the cause for only getting the last hop.
  • On macOS, I am able to set privileged=False and get reasonable results back from a traceroute.

from icmplib.

ValentinBELYN avatar ValentinBELYN commented on August 29, 2024

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

from icmplib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.