Linux下面有个东西叫traceroute 和Windows下面的tracert差不多 但是更加高级
-I --icmp Use ICMP ECHO for tracerouting
-T --tcp Use TCP SYN for tracerouting
-n Do not resolve IP addresses to their domain names
-U --udp Use UDP to particular port for tracerouting
(instead of increasing the port per each probe),
default port is 53
-p port --port=port Set the destination port to use. It is either
initial udp port value for "default" method
(incremented by each probe, default is 33434), or
initial seq for "icmp" (incremented as well,
default from 1), or some constant destination
port for other methods (with default of 80 for
"tcp", 53 for "udp", etc.)
一个网络做了UDP和ICMP过滤,如果想看看是哪层路由做的,用traceroute -I -U -T各试一次,对比一下输出基本就知道结果了。
相比之下 Windows下面只有一个tracetcp可选 还是基于winpcap的 而且早就停止开发了
这里有个traceroute for windows 当前最新版本是tcptraceroute-1.5beta7 本人不才 不会在Windows下编译
不过最新版本的nmap也可以做到了 更加可喜的是nmap是跨平台的 这个安装包包含了winpcap和Zenmap graphical frontend
如果觉得臃肿或者只想用命令行版本