bugcy013
8/2/2014 - 7:12 PM

gistfile1.txt

#Predepends
apt-get install libnuma-dev

#Download pf_ring
#http://sourceforge.net/projects/ntop/files/PF_RING/
#--Version 5.6.1--
#wget http://freefr.dl.sourceforge.net/project/ntop/PF_RING/PF_RING-5.6.1.tar.gz
#tar -xzf PF_RING-5.6.1.tar.gz
#cd PF_RING-5.6.1
#--Version 5.6.2--
#wget http://freefr.dl.sourceforge.net/project/ntop/PF_RING/PF_RING-5.6.2.tar.gz
#tar -xzf PF_RING-5.6.2.tar.gz
#cd PF_RING-5.6.2
sudo su
make clean
make
cd kernel; make install
cd ../userland/lib; make install
#Setting libpcap in system path
cd ../libpcap-1.1.1-ring/
make install
#pfring enabled tcpdump
cd ../userland/tcpdump-4.1.1
./configure
make && make install
#Enable pf_ring at boot
#echo pf_ring >> /etc/modules

###PMACCT####

#Dowload cvs for pmacct
#export CVSROOT=":pserver:anonymous@cvs.pmacct.net:2402/home/repo-0.14"
#cvs login
#cvs co pmacct
#Compile pmacct with pf_ring suport
./configure --with-pcap-libs=/usr/local/lib/ --prefix=/usr --enable-mmap --enable-ipv6 --enable-threads
make
make install