1
General Discussion / Connection / State Monitoring
« on: February 02, 2021, 11:38:49 am »
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 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