zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    初识ambari
    MySQL Split 函数
    行存储和列存储
    Hbase安装和错误
    mysql 常用自定义函数解析
    mysq l错误Table ‘./mysql/proc’ is marked as crashed and should be repaired
    MySql提示:The server quit without updating PID file(…)失败
    mysql 自定义函数
    hive 调优总结
    [css] line boxes
  • 原文地址:https://www.cnblogs.com/yum777/p/10076061.html
Copyright © 2011-2022 走看看