句法;
tcp.port in {80 443 8080}很适合过滤端口,但是;
tcp.port not in {80 443 8080}似乎不成立。
更新:
我多蠢啊..。
not tcp.port in {80 443 8080}这个语法工作,将接受谁知道谁知道谁可以使用一个文件中的端口号作为数组(csv或txt)的答案。
发布于 2019-10-19 20:05:43
当我偶然发现你的问题时,我正在寻找同样的答案,但是你的更新并没有达到你最初的要求。假设在这些端口之间有通信:
Src Dst
80 10000
10000 443
10000 10000
80 8080声明
tcp.port not in {80 443 8080}等于
not tcp.srcport in {80 443 8080} or not tcp.dstport in {80 443 8080}它将显示源或目标端口不在组中的所有通信量。
Src Dst
80 10000 <== displayed
10000 443 <== displayed
10000 10000 <== displayed
80 8080 <== filtered另一方面,
not tcp.port in {80 443 8080}等号
not(tcp.srcport in {80 443 8080} or tcp.dstport in {80 443 8080})或扩张时
not tcp.srcport in {80 443 8080} and not tcp.dstport in {80 443 8080}这将不会显示源端口或目标端口位于组中的通信量。
Src Dst
80 10000 <== filtered
10000 443 <== filtered
10000 10000 <== displayed
80 8080 <== filteredhttps://unix.stackexchange.com/questions/322612
复制相似问题