Linux下抓包命令tcpflow使用总结
来源:互联网 发布:sql2008数据库设置紧急 编辑:程序博客网 时间:2024/06/05 09:54
tcpflow实际上也是一个抓包工具,这个抓包工具与tcpdump不同的是它是以流为单位显示数据内容,而cpdump以包为单位显示数据。我们平常会经常分析HTTP数据,用tcpflow会更便捷。
tcpflow可以理解为是一个抓包工具,其工具看起来更像wireshark的命令行版本,他可以直接从网卡抓包,并且解析出来,支持http ftp这些L7协议,也支持tcp udp抓包,还可以从tcpdump中读取东西,因此是一个非常好的看包工具,有了这个东西以后再也不用把线上服务器上的dump抓下来再用wireshark打开了。
tcpdump使用方法:
例1:在负载均衡器上分析其负载分发状况,在负载均衡服务器上执行
tcpflow -cp host 172.23.232.145(后端 IP)
例2:看缓存服务器上缓存有没有命中,在缓存服务器上执行
tcpflow -cp host 172.23.232.145(源端IP) | grep /index.html (url的相对路径) -A 10
可以根据自己需要自己去定义过滤,用法与tcpdump类似。
tcpflow version 0.21 by Jeremy Elson <jelson@circlemud.org>
usage: tcpflow [-chpsv] [-b max_bytes] [-d debug_level] [-f max_fds]
[-i iface] [-w file] [expression]
-b: max number of bytes per flow to save
-c: console print only (don’t create files)
-d: debug level; default is 1
-f: maximum number of file descriptors to use
-h: print this help message
-i: network interface on which to listen
(type “ifconfig -a” for a list of interfaces)
-p: don’t use promiscuous mode
-r: read packets from tcpdump output file
-s: strip non-printable characters (change to ‘.’)
-v: verbose operation equivalent to -d 10
expression: tcpdump-like filtering expression
- Linux下抓包命令tcpflow使用总结
- Linux下抓包命令tcpflow使用总结
- Linux下抓包命令tcpflow使用总结
- tcpflow命令使用总结
- tcpflow
- linux sed命令使用总结
- linux TC命令使用总结
- linux TC命令使用总结
- Linux-top命令使用总结
- Linux下mail命令使用总结
- Linux中dd命令使用总结
- linux下svn命令使用总结
- Linux中cp命令的使用总结
- Linux中scp命令的使用总结
- 经常使用的Linux命令总结
- Linux之yum命令的使用总结
- linux环境变量 export命令使用总结--重点
- Linux之yum命令的使用总结
- 文本框仅可接收decimal
- Linux下抓包命令tcpdump的使用
- java基础 第一章 JDK安装
- mybatis #与$的区别与用法
- session的知识
- Linux下抓包命令tcpflow使用总结
- 调试技巧
- scrapy爬虫框架安装与应用(包括post请求、递归访问http)
- C++ 理解复杂的数组声明
- 更新AndroidStudio 的时候 Gradle的错误解决方法
- Nginx location指令匹配顺序规则
- 生产者-消费者模式扫盲
- virtual box安装centeros
- sqoop