Track historical usage per user

Started by networkguy, January 21, 2018, 12:17:05 AM

Previous topic - Next topic
Is there a way within OPNsense to track individual users historical usage. I would like to be able to view a list of clients and show when they were connected and bandwidth used. Its nice to know data trends on devices on my network. Something like the graphs shown under the interface tab in insight but per client. Would be cool to have a quick visual of user traffic usage. Maybe be able to toggle between ip and hostname like what is on the traffic graphs. Actually, the client usage in the traffic graphs would work great if this was always being captured and data stored to view anytime.

You can send your netflow output to an external tool with more features. Solarwinds is one of the more popular ones: https://www.solarwinds.com/free-tools/real-time-netflow-analyzer

Bart...

Solarwinds? Name of the project is chosen.. eeehmmm..    unfelicitous


https://en.wikipedia.org/wiki/Stellar_Wind

:-S
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Thanks for the info. I was looking to see if there is a way to do it on box with a package like bandwidthd. I have been thinking of pushing off firewall logs to splunk, I believe it supports up to 500 MB per day of logging for free. I may try seeing if I could get a net flow dashboard working on there as well.

We do have a package for bandwidthd, but no GUI plugin component so it needs to be configured manually.

# pkg add bandwidthd


Cheers,
Franco

I don't suppose you have any pointers on configuring this manually?

I got bandwidthd to work by installing manually like this. You will need basic command line experience to be able to do this.

1) pkg install bandwidthd
2) Change 'dev' in /usr/local/bandwidthd/etc/bandwidthd.conf to be the interface you want to monitor, for me it was hn0. Usually this will be your LAN interface, you can check the interface names in the Interface->Assignments in the OPNSense UI.
3) Link /usr/local/bandwidthd/htdocs/ to /usr/local/www (I used the command 'ln -s /usr/local/bandwidthd/htdocs/ bandwidthd'). This step I'm not sure if its the correct way to really do this, I'm assuming an update to opnsense in the future might remove this link. Franco I'd love to hear what is the best way to link the bandwidth html docs to the www dir.
4) Then you can start the bandwidthd process by running '/usr/local/etc/rc.d/bandwidthd onestart'. I'm not sure what the correct way to make this startup on boot automatically. Franco again be great if you could let us know what is the ideal way to make it start automatically?
5) Now you can view the graphs at http://192.168.1.X/bandwidthd (it will take a few minutes for them to generate).

Good Luck : ) I have Bandwidthd and ntopng now running nicely, now I can see the bandwidth usage with urls (ntopng) and also over the last week/month (bandwidthd).



Hi, i am trying to install bandwidthd on my opnsense. I have followed the steps from above but not able to make it work.

Installed the package, changed the interface in config file, link the htdocs folder to bandwidthd folder in www folder, started the service and not working. It takes me to opnsense page which says "page not found."

My login was on  different port so i changed it to http port 80. Any settings i am missing ??

my lan is re0 so device in config should be (dev re0) or (dev "re0") ??
Do i need to restart web service as well, i do not find any service to restart, kindly help in this as well.



I use ntopng and i love it as it shows total bandwidth used, currently active downloader, along with some other great features.

But it do not save the data for previous / old records. I have enabled the cache and changed the time to different time / days. But only thing it shows is active devices. If a device goes offline or firewall reboot then all the data is gone, deleted / removed by software.

I need to provide the daily report of total bandwidth used by the devices in network. I used bandwidthd before in PFSense and i know it will solve this issue.

Still if you know any way around in ntogng to save data and to get past records for report on daily basis then i am good to go with ntopng.

It shouldn't be hard to build a plugin for it, but the UI looks really creepy :)

I really don't mind the graphics. All i care about i the data / status i will provide me..

I am not a programming guy by any means so If you can build the plugin, will be grateful..


@tillsense. I really do not understand what you are trying to say.