tcpcopy
https://www.cnblogs.com/phennry/p/6382755.html?utm_source=itdadao&utm_medium=referral tcpdump -i eth0 src 172.16.0.86 and '(tcp and src port 8188 or src port 8189)' -nn -V -xxx tcpdump -i eth0 src 172.16.0.54 and tcp and dst port 8188 or dst port 8189 -nn /usr/local/tcpcopy/sbin/tcpcopy -x 8189-172.16.0.86:8189 -s 172.16.0.86 -c 172.16.0.54 -d # -s tcp辅机(asistant) -c 修改IP为172.16.0.54 /usr/local/tcpcopy/sbin/tcpcopy -x 8189-172.16.0.86:8189 -s 172.16.0.86 -c 172.16.0.54 -d /usr/local/tcpcopy/sbin/tcpcopy -x 8188-172.16.0.86:8188 -s 172.16.0.86 -c 172.16.0.54 -d tcpdump -i eth0 src 172.16.0.54 and '(tcp and dst port 8188 or dst port 8189)' -nn tcpdump -i eth0 port 6379 -n -s 512 tcpcopy: wget https://github.com/session-replay-tools/tcpcopy/archive/v1.2.0.tar.gz ./configure make install /usr/local/tcpcopy/sbin/tcpcopy -x 8189-172.16.0.86:8189 -s 172.16.0.86 -c 172.16.0.54 -d /usr/local/tcpcopy/sbin/tcpcopy -x 8188-172.16.0.86:8188 -s 172.16.0.86 -c 172.16.0.54 -d iptables -A INPUT -s 172.16.0.86 -p tcp --sport 8188 -j DROP iptables -A INPUT -s 172.16.0.86 -p tcp --sport 8189 -j DROP wget https://github.com/session-replay-tools/intercept/archive/1.0.0.tar.gz ./configure yum -y install libpcap libpcap-deve ./configure make install /usr/local/intercept/sbin/intercept -i eth0 -F 'tcp and (src port 8188 or src port 8189)' -d