tcpdump过滤器src dst端口

问题描述 投票:1回答:1

我需要在5060端口上嗅到voip流量。同时我需要排除src端口5060和dst端口5061所有的数据包

我需要这样的东西:

tcpdump -i any -vvv -s0 port 5060 and (not src port 5060 and not dst port 5061)  

但是过滤器的第二部分应该与单个数据包相关,而不是所有流量。我怎样才能做到这一点?

filter tcpdump
1个回答
3
投票

尝试

port 5060 and not (src port 5060 and dst port 5061)
© www.soinside.com 2019 - 2024. All rights reserved.