首页 > 其他分享 >traceroute [-n] -T -p <目标端口号> Host

traceroute [-n] -T -p <目标端口号> Host

时间:2024-01-31 14:55:57浏览次数:16  
标签:Use traceroute -- number default Host port

三、 命令使用
traceroute [-n] -T -p <目标端口号> Host
1
参数说明:

-n 直接使用 IP 地址而非主机名称(禁用 DNS 反查)。

-T 通过 TCP 探测。

-p 探测目标端口号。

Host 目标服务器域名或 IP。

注:Windows 环境下,您可通过 tracetcp 进行端口可用性探测。通过发送 TCP 数据包进行链路探测,以分析是否有链路中间节点对目标端口做了阻断。这之前需要先安装 winpcap library;
下载地址:https://github.com/0xcafed00d/tracetcp/releases/tracetcp release v1.0.3
winpcap已停止更新,下载地址:https://www.winpcap.org/install/default.htm;
官方建议下载npcap,其本身也是基于wincap,下载地址https://nmap.org/npcap/,可以在最多5个系统上使用免费版本的Npcap(但不能在外部重新分发)(免费许可证详细信息)。它也可以在无限制系统上使用,只能与Nmap 和/或Wireshark一起使用。只需运行可执行安装程序。

其他参数:

-4 Use IPv4
-6 Use IPv6
-d --debug Enable socket level debugging
-F --dont-fragment Do not fragment packets
-f first_ttl --first=first_ttl
Start from the first_ttl hop (instead from 1)
-g gate,... --gateway=gate,...
Route packets through the specified gateway
(maximum 8 for IPv4 and 127 for IPv6)
-I --icmp Use ICMP ECHO for tracerouting
-T --tcp Use TCP SYN for tracerouting (default port is 80)
-i device --interface=device
Specify a network interface to operate with
-m max_ttl --max-hops=max_ttl
Set the max number of hops (max TTL to be
reached). Default is 30
-N squeries --sim-queries=squeries
Set the number of probes to be tried
simultaneously (default is 16)
-n Do not resolve IP addresses to their domain names
-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.)
-t tos --tos=tos Set the TOS (IPv4 type of service) or TC (IPv6
traffic class) value for outgoing packets
-l flow_label --flowlabel=flow_label
Use specified flow_label for IPv6 packets
-w waittime --wait=waittime
Set the number of seconds to wait for response to
a probe (default is 5.0). Non-integer (float
point) values allowed too
-q nqueries --queries=nqueries
Set the number of probes per each hop. Default is
3
-r Bypass the normal routing and send directly to a
host on an attached network
-s src_addr --source=src_addr
Use source src_addr for outgoing packets
-z sendwait --sendwait=sendwait
Minimal time interval between probes (default 0).
If the value is more than 10, then it specifies a
number in milliseconds, else it is a number of
seconds (float point values allowed too)
-e --extensions Show ICMP extensions (if present), including MPLS
-A --as-path-lookups Perform AS path lookups in routing registries and
print results directly after the corresponding
addresses
-M name --module=name Use specified module (either builtin or external)
for traceroute operations. Most methods have
their shortcuts (`-I' means `-M icmp' etc.)
-O OPTS,... --options=OPTS,...
Use module-specific option OPTS for the
traceroute module. Several OPTS allowed,
separated by comma. If OPTS is "help", print info
about available options
--sport=num Use source port num for outgoing packets. Implies
`-N 1'
--fwmark=num Set firewall mark for outgoing packets
-U --udp Use UDP to particular port for tracerouting
(instead of increasing the port per each probe),
default port is 53
-UL Use UDPLITE for tracerouting (default dest port
is 53)
-D --dccp Use DCCP Request for tracerouting (default port
is 33434)
-P prot --protocol=prot Use raw packet of protocol prot for tracerouting
--mtu Discover MTU along the path being traced. Implies
`-F -N 1'
--back Guess the number of hops in the backward path and
print if it differs
-V --version Print version info and exit
--help Read this help and exit
Arguments:
host The host to traceroute to
packetlen The full packet length (default is the length of an IP header plus 40).


输出结果说明:
1)在traceroute中出现!H,指响应时间为*哦。。。从对方没有收到包也就没响应;!h就是主机不可达的意思
————————————————

文章仅用于技术分享,未经本人同意,禁止转载,且不得应用于商业模式

原文链接:https://blog.csdn.net/ximenjianxue/article/details/100078747

标签:Use,traceroute,--,number,default,Host,port
From: https://www.cnblogs.com/cheyunhua/p/17999258

相关文章

  • STM32CubeMX教程29 USB_HOST - 使用FatFs文件系统读写U盘
    1、准备材料正点原子stm32f407探索者开发板V2.4STM32CubeMX软件(Version6.10.0)keilµVision5IDE(MDK-Arm)ST-LINK/V2驱动野火DAP仿真器XCOMV2.6串口助手2、实验目标使用STM32CubeMX软件配置STM32F407开发板USB_OTG_FS为工作在MassStorageHostClass(大容量存储主机类)模......
  • MySQL数据库连接报错1130 - Host 'xxx' is not allowed to connect to this MySQL ser
    目录现象描述原因分析解决办法:本文解决MySQL数据库连接报错1130-Host'xxx'isnotallowedtoconnecttothisMySQLserver。返回目录返回目录现象描述MySQL数据库,使用Navicat、root用户连接报错:原因分析这个报错原因是权限问题,需要修改连接权限。进入mysql......
  • 访问localhost失败拒绝访问
    一:初次使用java来利用serverSocket时,出现拒绝访问二:解决步骤如下<1>在开始里面搜索控制面板<2>找到程序,再在里面找到程序和功能<3>在里面找到启动和关闭windows功能<3>在程序和功能里面找到点击选中“InternetInformationService”及其下的“FTP服务器,其下的大选项的选上,然后点击......
  • 虚拟机vmware安装ubuntu磁盘塞满启动爆ubuntu 开机报错 piix4_smbus : SMBus Host Con
    虚拟机vmware安装ubuntu磁盘塞满启动爆ubuntu开机报错piix4_smbus:SMBusHostControllernotenabled错误解决办法  一、vmware硬件增加磁盘空间该虚拟机名称右键[设置]-虚拟机设置-【硬盘(SCSI)】-磁盘实用工具-扩展磁盘容量-【扩展】-增大适当的容量。二、重启VMWA......
  • win修改host显示没有权限
    1.打开host文件文件位置C:\Windows\System32\drivers\etc2.右键属性->安全->高级3.更改->高级->立即查找  4.在下拉菜单中找到”本地账户”确定->确定->应用5.出现弹窗->确定->确定6.编辑->选中组或用户名当中的”Users(DESKTOP-XXXXX\us......
  • docker run 共享host网络
    最近在尝试tensorrt-llm,它需要dockerrun一个container,但我在container内部没法从github上下项目。$docker--versionDockerversion24.0.5,build24.0.5-0ubuntu1~22.04.1解决方法:将本机的网络代理修改成global模式连接rundocker的时候输入:dockerrun-it--......
  • CentOS7&Windows10的hosts文件设置
    CentOS7的hosts文件设置打开hosts文件vim/etc/hosts添加如下内容[IP][映射名称]如:127.0.0.1www.haha.com重启设备,查看主机名修改成功rebootWindows10的hosts文件的设置找到windows的hosts文件C:\Windows\System32\drivers\etc打开hosts文件添加cen......
  • fail: Microsoft.Extensions.Hosting.Internal.Host[11] Hosting failed to sta
    docker发布.net8项目#使用.NET运行时镜像作为最终镜像FROMmcr.microsoft.com/dotnet/runtime:8.0#设置工作目录WORKDIR/app#复制项目文件到工作目录COPY./appENVASPNETCORE_URLS="http://*:8003"ENVASPNETCORE_HTTP_PORTS=""#设置入口点ENTRYPOINT["dotn......
  • sudo: unable to resolve host xxxx: Name or service not known
    前言在Linux环境中,我使用sudo执行命令,发生报错:sudo:unabletoresolvehostxxxx:Nameorservicenotknown解决这个错误通常发生在更改主机名后,使用sudo命令时出现问题。sudo命令会尝试解析主机名,但如果无法解析,就会出现"sudo:unabletoresolvehost"的错误。然而......
  • Kafka【问题 02】KafkaTemplate 报错 Bootstrap broker localhost:9092 (id: -1 rack:
    Kafka【问题02】KafkaTemplate报错Bootstrapbrokerlocalhost:9092(id:-1rack:null)disconnected问题解决1.报错信息主要的报错信息:Connectiontonode-1(localhost/127.0.0.1:9092)couldnotbeestablished.Brokermaynotbeavailable.和Bootstrapbrok......