在 tcpdump 中监控多个端口 [英] Monitoring multiple ports in tcpdump

查看:123
本文介绍了在 tcpdump 中监控多个端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种使用 tcpdump 读取多个端口的方法.假设我有两个端口 p1 和 p2,我想同时读取通过两个端口的流量.有什么办法可以使用 tcpdump 或我必须使用其他工具吗?

I am trying to find a way to read multiple ports using tcpdump. Suppose I have two ports, p1 and p2, and I want to read the traffic moving through both ports simultaneously. Is there any way to do it using tcpdump or will I have to use some other tool?

基本上我正在运行一个在某个端口上运行的代理服务器.我想读取通过此端口的流量以及通过端口 80(HTTP) 的流量.

Basically I am running a proxy server which is running on some port. I want to read the traffic moving through this port as well traffic moving through port 80(HTTP).

推荐答案

tcpdump port 80 or port 3128

,或者,

tcpdump port '(80 or 443)'

这篇关于在 tcpdump 中监控多个端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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