bandwidth monitoring

Started by ash45, December 28, 2015, 11:39:45 PM

Previous topic - Next topic
Hi dont know if im being blind or if its not there, is there an option some where to view the bandwidth used per device,

I know if i goto Interfaces > overview > and look at In/out packets it tells me for both Wan And Lan totals

but is there somewhere lists it on a per device basis EG 192.168.0.2 has used 12/1GB 192.168.0.3 1/0.1Gb so on its not a major thing to have but it would be nice for me to keep an eye on which systems are using the most data

Thanks Ash

*push*

One of the reasons I registered to this forum was to ask the exact same question :-)

I'm used to some "old" Astaro appliances which had *a lot* of monitoring based on IP addresses, generated traffic filtered by time and amount etc.

I didn't see any options for that kind of monitoring, too.

Seems that there are some tools like bandwidthd, darkstat, ntop etc. which seem to work with pfSense (or did with some version at least). Is that a supported option to install these tools on OPNsense since it's based on pfSense and FreeBSD?

Any chance to get such packages for OPNsense natively with full GUI support?

Regards

The short answer is, it's not there (yet).

We probably will look at some options for the 16.7 release, preferably something which integrates nicely into our user interface, but at the moment there is no option available.

Unfortunately the port package for ntopng is not maintained any more, I already looked at the option to put that into our package list some time ago.
A short term option could be to add darkstat to our package collection (provided that package is still maintained), although a setup gui will not be provided from our end.

Regards,

Ad

January 07, 2016, 10:33:21 AM #3 Last Edit: January 09, 2016, 12:57:16 AM by franco
I've just added darkstat to our package list, so it will be in there at the next release:
(https://github.com/opnsense/tools/commit/5a6fdde274204d7b97ca8b1cf41b0d827c1f05a1)

In case you want to test already (and your using 64bit x86), I've uploaded the package to our website:

here's how to install manually:
pkg add -f https://pkg.opnsense.org/snapshots/darkstat-3.0.719.txz

and start darkstat the usual way (darkstat -i <interface>)

I've just tested it with the local LAN interface, working great so far :-)

I only got an error with "pkg -f" but it was installed anyways. The "-f" parameter seems to be unknown/illegal.

FYI: darkstat is listening on port 667/tcp so point your browser to http://yourLAN:667 and you see some details.

Since I'm pretty new to FreeBSD (was using OpenBSD some years ago tough...) can someone point me in the right direction to run darkstat after a reboot? Probably during some rc.d magic but each system is different here...

Hi Hektor,

The easiest way is to add a startup script in our rc.syshook.d directory (which is used for our plugins).
You can use the vmware plugin as an example:

https://github.com/opnsense/plugins/blob/master/sysutils/vmware/src/etc/rc.syshook.d/vmware.start

(src/etc translates to /usr/local/etc/)

Regards,

Ad

It's "pkg add -f", I've fixed the typo. :)

rc.syshook is the easiest way by far, I agree.