← 返回命令列表

Linux command

tcptraceroute 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Trace

tcptraceroute host

Example

tcptraceroute host 80

Example

tcptraceroute host -p 12345 -s 192.168.1.10

Example

tcptraceroute host -f 1 -m 30

Example

tcptraceroute host -w 3 -q 3

Example

tcptraceroute host -i eth0

Example

tcptraceroute -n host

说明

tcptraceroute is a traceroute implementation using TCP packets. It can trace through firewalls that block traditional ICMP or UDP traceroute packets by using TCP SYN packets to a specified port.

参数

-p PORT
Set local source port
-s ADDRESS
Set source IP address
-i INTERFACE
Specify network interface to use
-f TTL
Set the initial (first) TTL value
-m TTL
Set the maximum TTL value (default: 30)
-w SECONDS
Set the timeout for each probe (default: 3)
-q QUERIES
Set number of queries per hop (default: 3)
-n
Print numeric addresses only (no DNS resolution)
-N
Enable lookup of hostnames
-S
Set SYN flag on outgoing packets
-A
Set ACK flag on outgoing packets
-E
Set ECN flag on outgoing packets

FAQ

What is the tcptraceroute command used for?

tcptraceroute is a traceroute implementation using TCP packets. It can trace through firewalls that block traditional ICMP or UDP traceroute packets by using TCP SYN packets to a specified port.

How do I run a basic tcptraceroute example?

Run `tcptraceroute host` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p PORT do in tcptraceroute?

Set local source port