You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. On the Target Server Running MySQL Applications:
a) Configure Routing to Direct Response Packets to the Assistant Server
For example, assuming 10.110.12.18 is the IP address of the assistant server and 10.110.12.15 is the MySQL client IP address, use the following route command to direct all responses from 10.110.12.15 to the assistant server:
route add -host 10.110.12.15 gw 10.110.12.18
b) Start MySQL with --skip-grant-tables
2. On the Assistant Server Running intercept (Root Privilege or CAP_NET_RAW Capability Required):
./intercept -F <filter> -i <device>
Note that the filter format is the same as the pcap filter. For example:
./intercept -i eth0 -F 'tcp and src port 3306' -d
In this example, intercept will capture response packets from a TCP-based application listening on port 3306, using the eth0 network device.
Please note that ip_forward is not enabled on the assistant server.
3) On the Online Source Server (Root Privilege or CAP_NET_RAW Capability Required):
tcpcopy captures MySQL packets (assuming MySQL listens on port 3306) on the current server, modifies them as needed, and forwards them to port 3306 on 10.110.12.17 (the target MySQL server). It also connects to 10.110.12.18 to request that intercept forwards the response packets to it.