Using NfSen

Introduction

Goals

Assumptions

Your router is sending netflow records to your srv1-gY shared Server, and that host is running NfSen to collect this data.

http://srv1-gY.lab.workalaya.net/nfsen/nfsen.php


Create a Stat to graph specific traffic

Download HTTP data to vmX-gY

Log in on vmX-gY in your group and use the wget command to simulate an HTTP download.

lab@vm1-g1:~$ cd /tmp lab@vm1-g1:~$ wget http://www.lab.workalaya.net/downloads/BigFile

Once the download completes you can delete the file:

lab@vm1-g1:~$ rm /tmp/BigFile lab@vm1-g1:~$ exit (to log off from vmX-gY)

See the traffic

Your graph will take up to 15 min to update. Go to Graphs then Traffic. Then go to details and select Line Graph at bottom

nf-profile-details

Stop! What’s happening here?


Extended Netflow processing

nf-profile-time-window

Go to Profile, select the group you created then select ‘HTTP_TRAFFIC’. Then go to the ‘Details’ tab and select ‘Time Window’ instead of ‘Time Slot’ beneath the graph. Choose a part of the graph with activity as above.

nf-profile-list-flow-options

Select the options as on the left. This means, select the Top 10 Flows, Order them by bytes from the highest to the lowest and display information of the source and destination ports and IPs. Then select ‘Process’. Analyze the output you get which will look like the below screen.

nf-profile-list-flow-output

Try the same with the BiDirectional traffic option. What do you see? Try playing with the different options and see what output you get.

nf-profile-list-flow-options-bi-directional

You can also add the same filters on the filter window next to the Options.

nf-profile-filter

Try the following filters:

Many more filters you could use


Monitor a specific host (ADDITIONAL/OPTIONAL)

Filters

nf-trends-rrd