tracert 0.4.0

Cross-platform library for traceroute and ping
Documentation

tracert Crates.io License

Cross-platform library for traceroute and ping. Written in Rust.

Features

  • traceroute
    • UDP
  • ping
    • ICMPv4
    • ICMPv6
    • UDP
    • TCP

Usage

Add tracert to your dependencies

[dependencies]
tracert = "0.3.1"

Note for Windows users

You may need to set up firewall rules that allow ICMP Time-to-live Exceeded and ICMP Destination (Port) Unreachable packets to be received.

netsh example

netsh advfirewall firewall add rule name="All ICMP v4" dir=in action=allow protocol=icmpv4:any,any
netsh advfirewall firewall add rule name="All ICMP v6" dir=in action=allow protocol=icmpv6:any,any

Additional Notes

This library requires the ability to create raw sockets. Execute with administrator privileges.