Tcpcopy Project Address: https://github.com/session-replay-tools/tcpcopy
Author Address: http://blog.csdn.net/wangbin579
1: Environment description
Erecting three servers
10.53.132.52
10.53.132.55
10.53.132.101
101 We believe that the online servers, 52 and 55 are test environments. We run Tcpcopy on 101 to copy the online traffic to 55, on 55 We turn the answer to 52 on the route and discard the answer on 52.
Apache deployed on 101 and 55 respectively, Port 8090
2: Step
101 Deployment on Tcpcopy
Tcpcopy-x 8090-10.53.132.55:8090-s 10.53.132.52-c 192.168.100.x-n 5
Copy the traffic on the native 8090 to the 8090 port of 55.
-s specifies the server on which the intercept process resides. (Packet drop server)
-C Modify the request's host address to 192.168.100.x to set the route on 55 (the route is set to turn the answer to 52 "packet Drop Server")
-N Flow magnification
55 Set up routing on
Route add-net 192.168.100.0 netmask 255.255.255.0 GW 10.53.132.52
52 running the intercept
Intercept-i eth1-f TCP and SRC port 8090-d
Reference address
http://blog.csdn.net/wangbin579/article/details/8950282
http://blog.csdn.net/wangbin579/article/details/7476413
Test environment with Tcpcopy copy on-line flow pressure measurement