Changes between Version 12 and Version 13 of netmon2017netflow


Ignore:
Timestamp:
Nov 21, 2017, 5:19:19 PM (7 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • netmon2017netflow

    v12 v13  
    1717       libmailtools-perl bison flex
    1818}}}
     19
     20You might get a box asking '''Make /etc/mrtg.cnf owned by and readable only by root?''' select '''yes'''.
    1921
    2022Now proceed to download and build. Note that only the last step (make install) has to be done as root.
     
    115117
    116118=== For a netflow router ===
     119{{{
    117120$ mkdir /tmp/nfcap-test
    118121$ nfcapd -E  -p 9001 -l /tmp/nfcap-test
     122}}}
     123
    119124... after a while, a series of flows should be dumped on your screen.
    120125
    121126Stop the tool with CTRL+C, then look at the contents of /tmp/nfcap-test
    122 
     127{{{
    123128$ ls -l /tmp/nfcap-test
     129}}}
     130
    124131You should see one or more files called nfcapd.<YEAR><MON><DAY><HR><MIN>
    125132
    126133Process the file(s) with nfdump:
    127 
     134{{{
    128135nfdump -r /tmp/nfcap-test/nfcapd.201Ywwxxyyzz | less
    129136nfdump -r /tmp/nfcap-test/nfcapd.201Ywwxxyyzz -s srcip/bytes
    130 
    131 === For a slow router ===
     137}}}
     138w,x,y,z indicate year, month, day and time.
     139
     140=== For a sflow router ===
     141{{{
    132142$ mkdir /tmp/sfcap-test
    133143$ sfcapd -E  -p 9001 -l /tmp/sfcap-test
     144}}}
     145
    134146... after a while, a series of flows should be dumped on your screen.
    135147
    136148Stop the tool with CTRL+C, then look at the contents of /tmp/nfcap-test
    137 
     149{{{
    138150$ ls -l /tmp/sfcap-test
    139 You should see one or more files called nfcapd.<YEAR><MON><DAY><HR><MIN>
     151}}}
     152
     153You should see one or more files called sfcapd.<YEAR><MON><DAY><HR><MIN>
    140154
    141155Process the file(s) with nfdump:
    142156
     157{{{
    143158nfdump -r /tmp/sfcap-test/sfcapd.201Ywwxxyyzz | less
    144159nfdump -r /tmp/sfcap-test/sfcapd.201Ywwxxyyzz -s srcip/bytes
     160}}}
     161w,x,y,z indicate year, month, day and time.
    145162
    146163== Installing and setting up NfSen ==
     
    149166{{{
    150167$ cd
    151 $ wget http://wget http://192.248.4.49/NotMon/nfsen-1.3.6p1.tar.gz
     168$ wget http://wget http://192.248.4.49/NetMon/nfsen-1.3.6p1.tar.gz
    152169$ tar xvzf nfsen-1.3.6p1.tar.gz
    153170$ cd nfsen-1.3.6p1
    154171$ perl -MCPAN -e 'install Socket6'
     172Would you like to configure as much as possible automatically? [yes]
     173What approach do you want? (Choose local::lib, sudo or manual)
     174[local::lib]
    155175$ cd etc
    156176$ cp nfsen-dist.conf nfsen.conf
     
    192212}}}
    193213
    194 (substitute your group's router for rtrX, and either remove or comment out the existing sample sources).
     214(substitute your group's router for accessrtr, and either remove or comment out the existing sample sources).
    195215
    196216Change the HTMLDIR from /var/www/nfsen/ to /var/www/html/nfsen/
     
    200220Now save and exit from the file.
    201221
    202 Deafault rrd tool version for nfsen is 1.5 but the latest version 1.6 therefore a slight configuration is needed
    203 {{{
    204 vi libexec/NfSenRRD.pm
     222Default rrd tool version for nfsen is 1.5 but the latest version 1.6 therefore a slight configuration is needed
     223{{{
     224cd
     225vi nfsen-1.3.6p1/libexec/NfSenRRD.pm
    205226}}}
    206227