gpt4 book ai didi

linux - 使用 settype 而不是 setname 搜索 ipset

转载 作者:太空宇宙 更新时间:2023-11-04 12:02:27 25 4
gpt4 key购买 nike

我知道 ipset list 的基本功能。使用 ipset list,我们可以通过提供 setname 来获取特定的 ipset 详细信息。

但我想知道是否有任何 ipset 规则存在于特定集类型的列表中。浏览整个列表会非常乏味。

有没有人知道怎么做。我什至没有在互联网上找到任何关于答案的答案。

如有任何帮助,我们将不胜感激。提前致谢。

最佳答案

IPSet 不支持带类型的查询,但是带名称的。
你可以这样做:

> ipset list -name  

out_tcp_rej_dp
out_tcp_acc_dp

> ipset list out_tcp_rej_dp

Name: out_udp_rej_dp
Type: bitmap:port
Header: range 1-65535
Size in memory: 8304
References

关于linux - 使用 settype 而不是 setname 搜索 ipset,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51888570/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com