用tcpcopy把线上流量复制到测试机

Standard
[root@web]$ git clone git://github.com/wangbin579/tcpcopy.git
[root@web]$ cd tcpcopy
[root@web]$ sh autogen.sh
[root@web]$ ./configure --prefix=/usr/local/tcpcopy
[root@web]$ make
[root@web]$ make install
[root@web]$ /usr/local/tcpcopy/bin/tcpcopy -x 80-10.251.81.3:80
 
[root@qa]$ /usr/local/tcpcopy/bin/intercept &
[root@qa]$ tcpdump 'port 80'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
03:05:56.816131 IP ....50854 > qa.http: Flags [S], seq ...
...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.