Understanding the Use of I Option in Traceroute Command with Netfilter Firewall

Abstract: Resolve traceroute timeouts caused by Netfilter dropping UDP probes by using the -I option to send ICMP Echo Requests instead.

Created: 2026-08-27 by
The -I option in the traceroute command forces the use of ICMP Echo Requests instead of UDP packets. This is critical when a Netfilter firewall drops or rate-limits standard UDP probes, allowing administrators to verify network paths that would otherwise appear broken due to packet filtering policies.

The Default Behavior and UDP Limitations

By default, most implementations of traceroute on Linux systems utilize User Datagram Protocol (UDP) packets sent to high port numbers (typically starting at 33434). The utility relies on receiving "Time Exceeded" messages from intermediate routers and an "Port Unreachable" message from the destination host to map the route. However, this method is fragile in environments with strict firewall rules.

Netfilter, the packet filtering framework integrated into the Linux kernel, often treats these UDP probes as noise or potential attacks. Many enterprise firewalls are configured to drop incoming UDP traffic on ephemeral ports to prevent UDP-based denial-of-service attacks or simply because the application does not require such connectivity. When a firewall drops these initial probes, traceroute cannot receive the necessary ICMP error messages, resulting in timeouts (* * *) for every hop. This creates a false negative where the path appears down, even though the underlying IP connectivity is intact. Understanding why UDP fails is the first step toward using alternative protocols like ICMP.

How the -I Option Changes Packet Structure

The -I flag instructs traceroute to send Internet Control Message Protocol (ICMP) Echo Request packets instead of UDP datagrams. These are the same packets used by the ping utility. By switching to ICMP, you bypass the specific UDP filtering rules that were blocking your previous attempts. Intermediate routers process ICMP packets differently than UDP packets regarding their handling of TTL (Time To Live) expiration. When a router receives an ICMP Echo Request with a TTL of 1, it decrements the TTL to 0, discards the packet, and sends back an ICMP Time Exceeded message to the source. This mechanism allows traceroute to identify the hop without relying on UDP-specific error handling.

This approach is particularly useful when troubleshooting connectivity issues between hosts where ICMP is permitted but UDP is restricted. It provides a clearer picture of the routing path because it aligns with the most fundamental layer of IP diagnostics. If you can successfully ping a host, using traceroute -I will likely yield a complete trace, assuming no intermediate devices are dropping ICMP Echo Requests specifically.

Firewall Configuration and Netfilter Rules

When dealing with Netfilter, administrators must ensure that the firewall rules allow the necessary ICMP traffic. While many firewalls drop UDP aggressively, they may still permit ICMP Echo Requests for basic diagnostics. However, some security-hardened systems drop all ICMP types or implement rate-limiting on Echo Requests. If you encounter partial traces where the first few hops succeed but later hops timeout, the issue might be an intermediate firewall dropping ICMP rather than the final destination. In such cases, checking the Netfilter logs on the gateway can reveal if DROP or REJECT actions are being applied to icmp-echo-request packets.

It is also important to note that some modern firewalls treat ICMP Echo Requests similarly to UDP floods if not properly rate-limited. Therefore, while -I solves the protocol mismatch issue, it does not guarantee success if the network infrastructure actively blocks ICMP entirely. Administrators should verify their iptables or nftables rules to ensure that ACCEPT policies exist for ICMP traffic in both INPUT and FORWARD chains. For example, a rule allowing icmp type echo-request is often sufficient for traceroute -I to function correctly across trusted networks.

Unable to traceroute but able to ping highlights a similar scenario where standard tools fail despite basic connectivity existing, often due to protocol-specific filtering.

Practical Implementation and Diagnostics

To execute a trace using ICMP, simply append the -I flag to your command: traceroute -I target_hostname. This command will initiate a series of ICMP Echo Requests with incrementing TTL values. If the trace succeeds, you will see a list of IP addresses corresponding to each hop, along with round-trip times. If it fails, compare the output with a standard ping test. A successful ping combined with a failed traceroute -I suggests that intermediate routers are dropping ICMP Time Exceeded messages, which is common in some cloud providers or managed services that obscure their internal topology.

In contrast, if traceroute (UDP) fails but traceroute -I succeeds, the evidence points directly to UDP blocking. This distinction helps network engineers narrow down whether the issue lies with application-layer firewalls, stateful inspection modules, or simple ACLs. Additionally, consider using mtr with the --icmp flag as an alternative, as it provides continuous monitoring and can confirm if the ICMP path remains stable over time. This dual-protocol verification strategy ensures that network visibility is not compromised by arbitrary firewall policies.

Troubleshooting Dropping Packets in iptables provides deeper insights into how to analyze firewall logs when packets are unexpectedly discarded during diagnostic tests.

Frequently Asked Questions

Why does traceroute show asterisks with UDP but work with -I?

Asterisks indicate that no response was received within the timeout period. UDP probes are often dropped by firewalls that do not expect traffic on high ephemeral ports, whereas ICMP Echo Requests are frequently allowed for basic diagnostics. Switching to -I bypasses these UDP-specific restrictions.

Can I use traceroute -I if ping is blocked?

No. Since traceroute -I uses ICMP Echo Requests, it requires the same permissions as ping. If a firewall blocks ICMP Echo Requests, both commands will fail to receive responses, resulting in timeouts for all hops.

Does the -I option work on Windows tracert?

The Windows tracert command uses ICMP by default, so it behaves similarly to traceroute -I on Linux. However, Linux traceroute defaults to UDP, making the -I flag essential for matching Windows behavior or bypassing UDP filters.

What if traceroute -I works but shows very high latency?

High latency may indicate that ICMP packets are being rate-limited by the firewall or that the route is traversing congested links. Check if intermediate devices are prioritizing other traffic types or applying quality-of-service (QoS) policies that delay ICMP processing.

Is there a risk of triggering intrusion detection systems with -I?

While less risky than UDP scans, rapid ICMP probing can still trigger IDS/IPS alerts if the volume is high. Use the -w flag to increase wait times between probes, reducing the likelihood of appearing as a scanning attack.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More