Hi everybody,
I have an important TCP/IP connection that runs through my opnsense 21.1 installation.
It is an IoT use case (Smartmeter Gateway sending telemetry data back to a Smartmeter Gateway operator).
The connection is from a fixed IP address in my network to a fixed IP address and Port (443) in the operator's datacenter.
What I would like to achieve in terms of monitoring:
- check whether there is exactly one established connection state between those IP addresses with Target Port 443
- check how much data per timespan has been send through the connection since it has been established
- see the point in time or duration since the connection has been established
I can find the desired information using pftop or the 'Inspect' button in the firewall rules menu. Ideally I could get this information out using the Telegraf plugin, but unfortunately is this kind of data not covered by the 'pf' input plugin of Telegraf. Any ideas how I can implement a connection state monitoring?
Thanks,
Martin
I have not reviewed the all the tools for opnsense. There are several plugins that may be able to help,
These may work for you.
reporting:insight
or
Firewall: Diagnostics: pfTop (this sounds like what you want)
These plugins may work if the above doesn't.
vnStat is a console-based network traffic monitor
os-ntopng Traffic Analysis and Flow Collection
os-netdata Real-time performance monitoring