-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nfsen features / problems for an nfsen user #31
Comments
Hello Brian, Thanks you very much for opening this new issue. As per today, nfsen-ng is not a 1 to 1 replacement for nfsen. There are some features that are not implemented. Concerning your questions / comments: Single time bin queriesYou will notice that when you select a predefined time slot, the button “Copy from graph” is disabled. If you use the zoom to isolate a peak you can then click this button and it will carry forward when you switch from "Graphs" to "Flows" or “Statistics”. Range selectionRelated to the above, if you need a smaller range than 24 hours, you can define your own slot manually by using the zoom and this will become the new time slot used by the two arrows to move back and forward. Your queries will then cover that range. However, for smaller slots than 24 hours, you will lose the visibility of that range under “Flows” and “Statistics”. Translated source/destinationNot sure I understood this point clearly. I assume we are talking about the output showed in the “Flows” and “Statistics”. Is that correct? The output there needs to be reworked. As far as I remember it’s not flexible enough and we did not implement it as we initially wanted to (lack of time). I do not have a running version of nfsen on hand, does this NAT translation happen automatically or do you have to specify it somewhere? Minor issuesThanks for pointing them out. @mbolli : do you have some time available soon ? We could meet and try to solve some open/reported points ? |
Thank you - I was being dense. I didn't notice that the "Copy from graph" button became active after moving the zoom slider. If I have the 24 hour view open, then I have to move the zoom slider a little to activate "Copy from graph". But it seems if I don't do that, then the same time period is used in the Flows and Statistics pages, so that's fine (now I realise that's the case).
These are additional fields generated in the netflow data from certain devices, such as firewalls (e.g. Cisco ASA) and some routers which do NAT. The examples I showed were from a Mikrotik router. Digging further: I built nfdump with They do appear in
This is probably better than writing a custom You'll also see them described in
Aside: the Cisco ASA is a more difficult beast again, because the flows it generates are bidirectional: they have in bytes and out bytes as separate columns in the same flow. Due to a quirk of nfdump, the "in bytes" are bytes from src to destination (which most people would think of as "outbound"), and "out bytes" are bytes from destination to src. I do have to deal with ASA sometimes, and it's a pain: because the definition of "src" or "dst" depends on whether the flow originated from the inside or outside, aggregating on src or dst becomes very difficult. (That is: in some flows my internal addresses are "src", and in other flows they are "dst"). One other minor point. When I do Statistics > Statistic for (Any IP Address) > Order by (Byte), the total bytes is not shown as a a column, although I would find it useful. The columns I get are:
(where ip/bytes shows IP address only). But the command nfsen-ng sends is:
and the CSV it returns includes additional columns like packets/packets% and bytes/bytes%:
I guess this was done to reduce screen clutter, but it would be nice to be able to turn on the additional columns (if there is already a way, I can't see it). I see there are a series of checkboxes under the "Search" dropdown, but they are all turned on already. |
Translated source/destination |
…valid slash from the placeholder. reported in #31.
Hello,
I have nfsen-ng installed. Here are some things I'm having problems with but was able to do in nfsen. It could be simply due to operator error and I can't work out how to do it.
Single time bin queries
In nfsen, it was easy to move the slider to point to any single 5-minute "bin" - e.g. where there's a nice peak - and then do a query below it.
I can't see how to do this in nfsen-ng. There is a very coarse slider at the top (3 year period), and given the graph below there's a small zoom slider below that, which I can zoom on in stages. But changing the lower zoom slider doesn't carry forward when I switch from "Graphs" to "Flows".
On the "Graphs" page there's a button "Copy from graph", but it's greyed out. When I switch to "Flows" this button vanishes completely.
Range selection
Related to the above: in the "Flows" page there's only the coarse slider at the top. I can switch to "24 hours" and move back and forth one day at a time using the arrows; but I can't see how to say, for example, "I'm only interested in 21:10 to 22:30"
In nfsen, I could just split the time indicator, and move the start and end positions to 21:10 and 22:30, and queries would cover that range.
Time period display
This is more just an observation than a problem.
In the Graph page, it took me a while to work out how to zoom in far enough: I had to first click the "24 hour" button at the top.
Here is the peak as seen by nfsen-ng, corresponding to the peak at 18:35 of 34.2 Mbps in the nfsen screenshot earlier:
It shows as 4.2MB/sec (which is the same). However I don't really like the "ramp up, ramp down / join-the-dots" line; I think that nfsen is more accurate by showing it as a bar, covering the time period ("the average value from 18:30 to 18:35 was X") rather than a point ("the value at 18:35 was X").
Having said that, nfsen is not always precise with start/end times either. It displays "t(start) 18:35, t(end) 18:35" when I think it means "t(start) 18:30, t(end) 18:35".
Translated source/destination
In nfsen I can view NAT-outside (translated) source and destination addresses; I can't see them in nfsen-ng.
Aside: nfsen doesn't let you aggregate on those fields, unless you patch the PHP slightly:
Minor issues
I was able to get error "Got 400 - Bad Request. Expected type int for datestart" when playing the the zoom slider at the bottom of the Graphs page, especially zooming in towards the latest data (i.e. current time).
If I go to the Flows page and select IP Aggregation - Destination - IPv4 subnets, then it looks like this:
The display suggests if I do nothing more, aggregation will be at /24 boundaries. But if I leave the /24 at default, I get an error in the nfdump command:
Running this command manually shows the actual error:
Also I can't enter "/24" in this field, it has to be "24" only. Once that's done, it works.
1'649.16
for duration is unusual. Is this 1649.16 seconds? I guess so. (To me it looks like 1 minute 649.16 seconds, but that wouldn't make sense).The text was updated successfully, but these errors were encountered: