tcpdump过滤器src dst端口 [英] tcpdump filter src dst port

查看:387
本文介绍了tcpdump过滤器src dst端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在5060端口上监听voip流量. 同时,我需要排除src端口5060和dst端口5061的所有数据包.

I need to sniff voip traffic on 5060 port. And at the same time I need to exclude all packets where src port 5060 and dst port 5061

我需要类似的东西:

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

,但过滤器的第二部分应与单个数据包有关,而不是与所有流量有关.我该怎么办?

but the second part of the filter should be related to a single packet, not all traffic. How can I do that?

推荐答案

尝试

port 5060 and not (src port 5060 and dst port 5061)

这篇关于tcpdump过滤器src dst端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆