OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Track historical usage per user
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: Track historical usage per user  (Read 20935 times)

networkguy

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Track historical usage per user
« on: January 21, 2018, 12:17:05 am »
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.
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Track historical usage per user
« Reply #1 on: January 21, 2018, 09:13:41 am »
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...
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: Track historical usage per user
« Reply #2 on: January 21, 2018, 09:41:47 am »
Solarwinds? Name of the project is chosen.. eeehmmm..    unfelicitous


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

:-S
Logged
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....

networkguy

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Track historical usage per user
« Reply #3 on: January 22, 2018, 04:49:16 pm »
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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: Track historical usage per user
« Reply #4 on: January 22, 2018, 07:19:31 pm »
We do have a package for bandwidthd, but no GUI plugin component so it needs to be configured manually.

# pkg add bandwidthd


Cheers,
Franco
Logged

jasonblewis

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Track historical usage per user
« Reply #5 on: January 31, 2018, 04:46:34 am »
I don't suppose you have any pointers on configuring this manually?
Logged

dedman

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: Track historical usage per user
« Reply #6 on: October 18, 2018, 03:44:08 pm »
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).

Logged

Ricardo

  • Full Member
  • ***
  • Posts: 233
  • Karma: 12
    • View Profile
Re: Track historical usage per user
« Reply #7 on: October 24, 2018, 05:18:03 pm »
sub
Logged

manjeet

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 4
    • View Profile
Re: Track historical usage per user
« Reply #8 on: December 10, 2018, 08:58:18 am »
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.

Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Track historical usage per user
« Reply #9 on: December 10, 2018, 10:09:35 am »
Why dont you use ntopng?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

manjeet

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 4
    • View Profile
Re: Track historical usage per user
« Reply #10 on: December 11, 2018, 08:35:31 am »
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Track historical usage per user
« Reply #11 on: December 11, 2018, 02:25:13 pm »
It shouldn't be hard to build a plugin for it, but the UI looks really creepy :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

manjeet

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 4
    • View Profile
Re: Track historical usage per user
« Reply #12 on: December 12, 2018, 08:20:37 am »
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..
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 325
  • Karma: 49
    • View Profile
Re: Track historical usage per user
« Reply #13 on: December 12, 2018, 07:07:09 pm »
Quote from: chemlud on January 21, 2018, 09:41:47 am
Solarwinds? Name of the project is chosen.. eeehmmm..    unfelicitous


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

:-S

hot  :-X
Logged

manjeet

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 4
    • View Profile
Re: Track historical usage per user
« Reply #14 on: December 14, 2018, 06:37:40 am »
@tillsense. I really do not understand what you are trying to say.
Logged

  • Print
Pages: [1] 2 3
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Track historical usage per user
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2