OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: CJ on April 07, 2021, 01:57:14 AM

Title: Monthly data usage
Post by: CJ on April 07, 2021, 01:57:14 AM
Is there a way to get monthly data usage reports?  Preferably ones that we can line up with our billing cycle?  I used to be able to do this with pfsense but I haven't found a way in opnsense yet.

The existing usage tools seem good for investigating, etc, but don't show an overall monthly report.  Or at least not that I saw.

Thanks.
Title: Re: Monthly data usage
Post by: bartjsmit on April 07, 2021, 09:27:35 AM
Install netflow if you haven't already, go to Reporting, Insight, Export tab. Set the collection to FlowInterfaceTotals, resolution to 3600 seconds and the date range to your last billing cycle.

Open the CSV, filter on your WAN connection (e.g. pppoe0), inbound direction, and sum the octets column. This will give a (reasonably accurate) total of bytes ingress.

Bart...
Title: Re: Monthly data usage
Post by: Koldnitz on April 07, 2021, 12:27:01 PM
Install Vnstat.

It gives you hourly daily and monthly totals.

Has been right on with what Comcast / Xfinity says I use monthly.

Cheers,
Title: Re: Monthly data usage
Post by: Ricardo on April 08, 2021, 07:57:37 PM
LOL, netflow is like nuclear bomb against 1 soldier.

Use vnstat, that was made exactly for that!
Title: Re: Monthly data usage
Post by: CJ on April 11, 2021, 09:53:53 PM
vnstat looks good and will give me a rough idea of my usage.  I would prefer something I could sync to my billing cycle but this will do for now.

Thanks.