GO KALI FREE

traceroute

Information Gathering

Beginnerlow risk

traceroute tracks the route packets take across an IP network on their way to a given host. It utilizes the IP protocol 'time to live' (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response.

Installation

sudo apt install traceroute

Basic Syntax

traceroute <target>

Quick Facts

Full Name
traceroute / tracert
License
Various (BSD/GPL)
Protocol
ICMP, UDP, TCP
Platforms
Linux, macOS, Windows
Category
Network Diagnostic
Default Protocol
ICMP (Linux), UDP (Windows)

Tool Overview

Traceroute is a network diagnostic tool that traces the path packets take from your system to a destination. It identifies each router (hop) along the path and measures the latency at each point.

The tool works by sending packets with incrementing TTL (Time To Live) values. Each router decrements the TTL and sends back a time-exceeded message when TTL reaches zero, revealing the hop's IP address and response time.

Traceroute is essential for diagnosing network issues, identifying routing problems, understanding network topology, and troubleshooting connectivity issues between source and destination.

Quick Reference Commands

Verified quick-reference commands for traceroute
CommandPurpose
traceroute <host>Trace the default UDP path.
traceroute -n <host>Trace without reverse-DNS lookups.
traceroute -I <host>Use ICMP echo probes.
traceroute -T -p 443 <host>Use TCP SYN probes to destination port 443.
Linux command reference
traceroute | Kali Linux Tools

Common Commands

traceroute example.comStandard route trace - Map network transit routers connecting local host systems to destination networks
traceroute -T example.comTCP traceroute
traceroute -n example.comNo DNS resolution
traceroute -p 443 example.comUDP traceroute using destination-port base 443
traceroute -I example.comICMP echo requests
traceroute -m 30 example.comMaximum 30 hops
traceroute -q 1 example.com1 probe per hop
traceroute -w 3 example.com3-second wait time
traceroute -f 5 example.comStart from TTL 5
traceroute -i wlan0 example.comSpecific interface
traceroute -s 192.168.1.100 example.comSpecific source IP
traceroute -T -p 80 example.comTCP trace to HTTP
traceroute -T -p 22 example.comTCP trace to SSH
traceroute -I -m 20 -q 2 example.comICMP 20 hops, 2 probes
traceroute -T -p 3389 example.comTCP trace to RDP
traceroute -T -p 25 example.comTCP trace to SMTP
traceroute -n -q 3 -w 1 example.comFast trace, no DNS
traceroute -I -p 53 example.comICMP trace to DNS port
traceroute -T -p 8080 example.comTCP trace to web app port
traceroute -T -p 443 -m 15 example.comTCP trace HTTPS, 15 hops
traceroute -n example.com | grep -E '\*\s\*\s\*'Find blocked hops

Step-by-Step Guide

  1. 1Execute the trace command against your remote destination
  2. 2Record the sequence of gateway hops and response delays
  3. 3Analyze the output to determine where internal routing stops and external begins
  4. 4Spot nodes that drop packets, which often indicates a firewall boundary

Use Cases

Network Path Discovery

Map the routers between your system and the destination.

Latency Analysis

Identify where network latency occurs in the path.

Routing Troubleshooting

Diagnose routing loops, black holes, and asymmetric paths.

Network Topology

Understand network infrastructure through hop analysis.

Firewall Testing

Identify where packets are being dropped or blocked.

Key Features

Related Tools

httpx

Information Gathering

HTTPX is a fast, multi-purpose HTTP toolkit by ProjectDiscovery that probes web servers for live status, extracts page titles, detects technologies, captures screenshots, and analyzes response headers — making it essential for reconnaissance pipelines, bug bounty hunting, and penetration testing.

Netdiscover

Information Gathering

Netdiscover is an active/passive ARP reconnaissance tool for discovering live hosts on a network. It sends ARP requests and listens for responses to identify devices, IP addresses, MAC addresses, and vendor information without performing port scans.

Whois

Information Gathering

Whois is a query and response protocol used for querying databases that store registered users of Internet resources. It provides information about domain registration, ownership, registrar details, name servers, and expiration dates for any domain or IP address block.

DMitry

Information Gathering

DMitry (Deepmagic Information Gathering Tool) is a command-line application that can gather as much information as possible about a host, including subdomains, email addresses, uptime information, and TCP port scans.

DNSenum

Information Gathering

DNSenum is a multithreaded Perl script for DNS enumeration that discovers DNS records, attempts zone transfers, brute-forces subdomains, and performs reverse lookups. It is a foundational reconnaissance tool in Kali Linux for mapping a target domain's DNS infrastructure.

Masscan

Information Gathering

Masscan is an internet-scale port scanner. It can scan the entire Internet in under 6 minutes, transmitting up to 10 million packets per second utilizing asynchronous transmit setups.

Related Cybersecurity Guides

Networking · Beginner

Routing Basics: How Data Travels Across Networks

Understand IP routing fundamentals including routing tables, routing protocols, static and dynamic routing, and how data crosses the internet.

Networking · Beginner

Networking Basics: Understanding TCP/IP, DNS, and Network Protocols

Learn the fundamentals of computer networking including the OSI model, TCP/IP protocol suite, IP addressing, subnetting, DNS, and network security essentials.

Linux · Beginner

Linux Networking Basics: Commands and Configuration

Essential Linux networking commands and configuration for IP addressing, routing, DNS, firewall rules, and network troubleshooting.

OSINT · Intermediate

Reconnaissance Workflow: Complete Information Gathering Process

Learn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.

Frequently Asked Questions

What is traceroute used for?

Traceroute is used for mapping the network path between your system and a destination. It shows each router (hop) along the path, measuring latency and identifying routing issues.

How does traceroute work?

Traceroute sends packets with incrementing TTL (Time To Live) values. Each router along the path decrements the TTL and sends back an ICMP time exceeded message, revealing the hop.

What is the difference between traceroute and ping?

Ping measures round-trip time to a destination. Traceroute shows every hop along the path, revealing where latency or packet loss occurs in the network.

Can traceroute be blocked?

Yes, firewalls can block ICMP or UDP packets used by traceroute. Some routers don't send ICMP time exceeded messages, causing hops to appear as * * *.

Tags

#reconnaissance#network-path#routing-discovery#icmp-ping

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.