zlingh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年10月30日

摘要: 1.抓包另存为文件 tcpdump -i xgbe0 -s 0 -w /tmp/tmp.pcap -s 设置数据报截取长度,默认68字节,去掉这个限制加上-s 0即可 2.抓包可视化ascii显示 tcpdump -i xgbe0 -s 0 -A tcpdump -i xgbe0 -s 0 -X 此 阅读全文
posted @ 2017-10-30 11:05 zlingh 阅读(306) 评论(0) 推荐(0) 编辑

摘要: 目标: 将线上服务lighttpd(8000端口)的流量引流到线下测试机 一、测试机: tcpcopy-server,接收流量 modprobe ip_queue iptables -L iptables -I OUTPUT -p tcp --sport 8000 -j QUEUE ./interc 阅读全文
posted @ 2017-10-30 11:05 zlingh 阅读(847) 评论(0) 推荐(0) 编辑

摘要: 一:添加屏蔽IP #禁止此IP访问服务器iptables -I INPUT -s 1.2.3.4 -j DROP或iptables -A INPUT -s 1.2.3.4 -j DROP#禁止服务器访问此IPiptables -A OUTPUT -d 1.2.3.4 -j DROP如果要封某个网段: 阅读全文
posted @ 2017-10-30 11:03 zlingh 阅读(3396) 评论(0) 推荐(0) 编辑