[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 ...
... |
[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 ...
...
Related Posts