@xunuo
2018-01-23T17:11:19.000000Z
字数 624
阅读 1691
网络数据包分析
yum -y install numactl
yum -y install numactl-devel
yum -y install kernel-devel
yum -y install flex.x86_64
yum -y install flex-devel.x86_64
yum -y install bison.x86_64
yum -y install bison-devel.x86_64
yum -y install git
git clone https://github.com/ntop/PF_RING.git
//编译安装kernel
进入PF_RING里的kernel目录
make 编译
make install 安装
//编译安装库
进入PF_RING 目录中的userland/lib
配置./configure
make 编译
make install 安装
//编译安装PF_RING可用的libpcap
进入userland/libpcap
配置./configure
make 编译
make install 安装
进入PF_RING目录下,执行
cd /lib/modules/`uname -r`/kernel/net/pf_ring
insmod pf_ring.ko transparent_mode=1
make capture
./capture -i 网卡名称