Advertisement

Only monitor UDP and TCP traffic using iftop.

阅读量:

Only monitoring UDP or TCP traffic via the iftop command, the following options are available:

Monitor Only TCP Traffic:

复制代码
    sudo iftop -P -f "tcp"

Monitor Only UDP Traffic :

复制代码
    sudo iftop -P -f "udp"

Here’s a quick breakdown:

  • -P: 此选项显示端口号而非服务名称。
    • -f "tcp": 此选项过滤流量以仅显示TCP。
    • -f "udp": 此选项过滤流量以仅显示UDP。

you may integrate these alongside iftop options for additional customization.

sudo iftop -P -f "udp"

全部评论 (0)

还没有任何评论哟~