Skip to content

Instantly share code, notes, and snippets.

@hillar
Created June 16, 2014 07:55
Show Gist options
  • Save hillar/70919fb45bc3cf89e1ae to your computer and use it in GitHub Desktop.
Save hillar/70919fb45bc3cf89e1ae to your computer and use it in GitHub Desktop.
nfsen
apt-get -y install apache2 libapache2-mod-php5 php5-common
apt-get -y install rrdtool libmailtools-perl librrds-perl libio-socket-ssl-perl
cd /tmp/
wget http://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz
tar zxvf nfsen-1.3.6p1.tar.gz
mv nfsen-1.3.6p1 nfsen
cp nfsen/etc/nfsen-dist.conf /etc/nfsen.conf
useradd www
useradd netflow
usermod -a -G www netflow
ln -s /usr/bin/nfcapd /usr/local/bin/nfcapd
ln -s /usr/bin/nfdump /usr/local/bin/nfdump
ln -s /usr/bin/nfprofile /usr/local/bin/nfprofile
cd nfsen
mkdir /data/nfsen
sed '/peer/d' /etc/nfsen.conf
./install.pl /etc/nfsen.conf
ln -s /var/www/nfsen/nfsen.php /var/www/nfsen/index.php
chown -R www:www /data/nfsen
chown -R www:www /var/www/nfsen/
/data/nfsen/bin/nfsen start
chmod 777 /data/nfsen/var/run/nfsen.comm
/usr/sbin/fprobe -ieth2 -fip localhost:9995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment