当我尝试ping -f ipaddress在 Ubuntu 中使用命令来测试我的系统时,它失败并显示一条消息:
ping: cannot flood; minimal interval, allowed for user, is 200ms
Run Code Online (Sandbox Code Playgroud)
当我输入 man ping 并查看 -f 选项时,它会说明
Only the super-user may use this option with zero interval.
Run Code Online (Sandbox Code Playgroud)
为什么需要这种特权?
从 man ping
-f
洪水平。对于每个发送的 ECHO_REQUEST 都会打印一个句点“.”,而对于 ECHO_REPLY 收到的任何时候都会打印一个退格。这提供了有多少数据包被丢弃的快速显示。如果没有给出时间间隔,它将时间间隔设置为零并输出数据包尽可能快地返回或一 hun?每秒干燥次数,以较大者为准。只有超级用户才能以零间隔使用此选项。
很明显,由于对每个到达的数据包进行大量回复,因此禁止降低网络流量,从而降低 DDOS 的威胁。
| 归档时间: |
|
| 查看次数: |
12717 次 |
| 最近记录: |