goreplay HTTP-HTTPS流量复制工具

goreplay相比tcpcopy只能复制HTTP和HTTPS的流量

goreplay编译很麻烦,就直接使用编译好的版本

gor_0.10.1_x64.tar.gz 支持centos5,测试的是centos5.9的版本

下载地址 https://github.com/buger/goreplay/releases

 

这里使用的gor_0.16.1_x64.tar.gz解压后可以直接使用

 

192.168.1.2 线上服务器

192.168.1.3 测试服务器

192.168.1.2 192.168.1.3执行

nohup python -m SimpleHTTPServer 8055 &

192.168.1.2

./goreplay --input-raw :8055 --output-http "http://192.168.1.3:8055"

 

访问192.168.1.2:8055可以看到192.168.1.3:8055也有日志

 

posted @ 2018-04-20 09:41  IT菜鸟园  阅读(1124)  评论(1编辑  收藏  举报