Article Title: Install Nfsen on BSD to analyze Netflow network traffic. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Nfsen Traffic Analysis for BSD Installation
1. cd/usr/ports/net-mgmt/nfsen Make install
View 137 in/usr/local/etc/nfsen. conf? Row 3 modifies the monitoring name, port number, and color.
Ports 9995 and 9996 are used by default.
2. Edit the apache configuration file
Vi/usr/local/etc/apache22/httpd. conf
Because the default homepage of nfsen is not index. php, but nfsen. php adds nfsen. php after the 216 rows of DirectoryIndex in the apache configuration file
By default, row 181 of the root directory is changed to the nfsen directory:
3. restart apache/usr/local/etc/rc. d/apache22 restart.
Start nfsen/usr/local/etc/rc. d/nfsen start
4. Install Nfsen plug-in PortTracker:
Go to the/usr/ports/net-mgmt/nfdump-devel/directory
Make patch indicates that the file is missing. make install
Generate work directory write down file path/usr/ports/net-mgmt/nfdump-devel/work/nfdump-snapshot-20070808
Go to the PortTracker directory/usr/ports/net-mgmt/nfsen/work/nfsen-1.3/contrib/porttracker(without this directory, download nfsen-1.3b-2007020..tar.gz with PortTracker)
Edit do_compile vi do_compile
NFDUMP =/usr/ports/net-mgmt/nfdump-devel/work/nfdump-snapshot-20070808
RRDINCLUDE =/usr/local/include
LIBRRD =/usr/local/lib
Run./do_compile to generate the nftrack execution File
Cp nftrack/usr/local/bin
Chown: www/usr/local/bin/nftrack
Rehash
[1] [2] Next page