给vps安装一款好用的路由追踪工具Besttrace

Besttrace是一款非常好用的路由追踪软件,通过路由路径可以判定vps的线路好坏,来觉得是否值得续费。

一、下载besttrace软件

使用wget命令

wget https://cdn.ipip.net/17mon/besttrace4linux.zip

解压缩zip文件

ubuntu@soul:~$ unzip besttrace4linux.zip -d besttrace

如果没有unzip,就安装一下

ubuntu@soul:~$ sudo apt install unzip

二、besttrace使用方法

ubuntu@soul:~/besttrace$ sudo ./besttrace --help
Usage of ./besttrace host [packetlen]
  -6, --ipv6           Use ipv6.
  -J, --json           Print traceroute result with JSON format, Enterprise version only.
  -g, --lang string    Language only supported cn and en now.
  -m, --maxhop int     Specifies the maximum number of hops (max time-to-live value) traceroute will probe. The default is 30. (default 30)
  -a, --noas           Do not try to map IP addresses to AS when displaying them.
  -n, --nodomain       Do not try to map IP addresses to host names when displaying them.
  -l, --nolocation     Do not try to map IP addresses to location when displaying them.
  -q, --queries int    Sets the number of probe packets per hop. The default is 3. (default 3)
  -z, --sendtime int   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).
                                Useful when some routers use rate-limit for ICMP messages.
  -f, --starthop int   Specifies with what TTL to start. Defaults to 1. (default 1)
      --sync           Send icmp package by sync.
  -T, --tcp            Use TCP SYN for probes.
  -V, --version        Print the version and exit.
  -w, --waittime int   Set the time (in seconds) to wait for a response to a probe. (default 3)
pflag: help requested

先赋予BestTrace执行权限chmod +x besttrace,然后执行命令进行路由跟踪./besttrace -q1 -g cn IP

ubuntu@soul:~/besttrace$ sudo ./besttrace -q1 -g cn yun.iteait.com
traceroute to yun.iteait.com (119.119.162.45), 30 hops max, 32 byte packets
 1  140.91.214.5  0.26 ms  AS31898  韩国, 首尔, oracle.com
 2  121.78.30.14  0.96 ms  AS9286  韩国, 首尔, kinx.net
 3  121.78.30.13  0.90 ms  AS9286  韩国, 首尔, kinx.net
 4  203.160.70.129  61.81 ms  AS10099  中国, 香港, chinaunicom.com, 联通
 5  61.14.201.137  80.78 ms  *  中国, 香港, chinaunicom.com, 联通
 6  219.158.3.181  55.74 ms  AS4837  中国, 北京, chinaunicom.com, 联通
 7  219.158.4.173  83.37 ms  AS4837  中国, 北京, chinaunicom.com, 联通
 8  219.158.101.226  81.99 ms  AS4837  中国, 辽宁, 大连, chinaunicom.com, 联通
 9  *
10  218.25.12.86  102.60 ms  AS4837  中国, 辽宁, 沈阳, chinaunicom.com, 联通
11  119.119.162.45  120.76 ms  AS4837  中国, 辽宁, 沈阳, chinaunicom.com, 联通
给vps安装一款好用的路由追踪工具Besttrace
滚动到顶部