我试图筛选出特定的ICMPv6数据包,并尝试使用以下命令查看所有可能的类型选项:
ip6tables -p icmpv6 -h这将产生以下类型(注意嵌套类型):
Valid ICMPv6 Types:
destination-unreachable
no-route
communication-prohibited
address-unreachable
port-unreachable
packet-too-big
time-exceeded (ttl-exceeded)
ttl-zero-during-transit
ttl-zero-during-reassembly
parameter-problem
bad-header
unknown-header-type
unknown-option
echo-request (ping)
echo-reply (pong)
router-solicitation
router-advertisement
neighbour-solicitation (neighbor-solicitation)
neighbour-advertisement (neighbor-advertisement)
redirect嵌套类型是否可以被指定为目标?
这是正确的语法吗,比方说,DROP传出的no-route目的地无法到达的数据包?
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type destination-unreachable no-route -j DROP发布于 2018-10-01 15:51:09
只需直接匹配no-route类型:
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type no-route -j DROP如果要删除所有无法到达的目标类型,请使用:
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type destination-unreachable -j DROPhttps://serverfault.com/questions/933475
复制相似问题