iptables -A INPUT -p icmp -j DROP
种类 | 类型 | 报文 |
差错报告报文 | 3 | 终点不可达 |
~ | 4 | 源点抑制 |
~ | 11 | 超时 |
~ | 12 | 参数问题 |
~ | 5 | 改变路由 |
查询报文 | 8 或 0 | 回送请求或回答 |
~ | 13 或 14 | 时间戳请求或回答 |
~ | 17 或 18 | 地址掩码请求或回答 |
~ | 10 或 9 | 路由器询问和通告 |
iptables -A INPUT -p icmp --icmp-type 8 -j DROP
[root@beyes beyes]# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_req=1 ttl=64 time=1.25 ms
64 bytes from 192.168.1.100: icmp_req=2 ttl=64 time=0.211 ms
C:\Users\Administrator>ping 192.168.1.104
正在 Ping 192.168.1.104 具有 32 字节的数据:
请求超时。
请求超时。
请求超时。
请求超时。
192.168.1.104 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 0,丢失 = 4 (100% 丢失),
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |