-
Version2.4.211 Installation MethodSecurity Onion ISO image Descriptionother (please provide detail below) Installation TypeStandalone Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPU18 RAM36GB Storage for /300GB Storage for /nsm1TB Network Traffic Collectionspan port Network Traffic SpeedsLess than 1Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsNo, there are no additional clues DetailTitleSecurity Onion 2.4.211 NetFlow integration listens on UDP but agentbeat publishes zero events SummaryI am trying to ingest NetFlow from OPNsense into Security Onion using the documented NetFlow Records integration. The Elastic Agent NetFlow input appears to deploy correctly and binds to UDP/2055, but I am trying to determine whether this is a known issue, a misconfiguration on my part, or something specific to Security Onion 2.4.211 / Elastic Agent 9.0.8. EnvironmentSecurity Onion version: Deployment: Node role/configuration: Elastic / integration versions observed: ConfigurationI added the NetFlow Records integration to the id: netflow-netflow-4f8edd5e-667f-455a-b9a8-2711fb5cef7b
meta:
package:
name: netflow
version: 2.23.1
name: netflow-1
streams:
- data_stream:
dataset: netflow.log
type: logs
detect_sequence_reset: true
expiration_timeout: 30m
host: 0.0.0.0:2055
internal_networks:
- 192.168.0.0/16
max_message_size: 10KiB
protocols:
- v1
- v5
- v6
- v7
- v8
- v9
- ipfix
queue_size: 8192
tags:
- netflow
- forwarded
workers: 1
type: netflow
use_output: so-manager_logstashThe output is configured for Logstash: outputs:
so-manager_logstash:
hosts:
- 192.168.10.40:5055
- securityonion:5055
type: logstashListener confirmation
I also added a temporary second NetFlow input on UDP/2056. It was owned by the same Packet arrival confirmationSecurity Onion receives NetFlow packets from OPNsense with no kernel drops: Example capture: Temporary 2056 test with NetFlow v5 also showed packets arriving: Socket counters showed no backlog and no drops: NetFlow v9 template confirmationI parsed the pcap to verify whether OPNsense was sending only data flowsets or also templates. The capture confirmed NetFlow v9 and showed template FlowSet ID 0 present: The template details show that template ID 256 exists: The packet order showed templates arrived before later data flowsets: NetFlow v5 control testI also tested NetFlow v5 to avoid template dependency. Packets arrived on UDP/2056, but The packet capture showed v5-like payloads: The 2056 listener was active during the test: The capture showed: agentbeat statsDespite packets arriving and the NetFlow input listening, Output event counters are also zero: The temporary 2056 NetFlow input behaved the same way. After OPNsense sent NetFlow v5 packets to UDP/2056, the same Elasticsearch checksNo NetFlow indices are created: A broad search also returns zero hits: LogstashI checked Logstash logs for obvious NetFlow/Filebeat/pipeline failures and did not see related errors: sudo docker logs so-logstash --since 30m 2>&1 | grep -Ei 'netflow|2055|beats|filebeat|agent|pipeline|error|failed|reject|drop|parse|exception'No relevant output was returned. QuestionIs this a known issue with the NetFlow Records integration in Security Onion 2.4.211 / Elastic Agent 9.0.8? Based on the tests above, OPNsense appears to be exporting successfully and Security Onion is receiving the packets. The NetFlow input binds to the socket, but Is there another Security Onion-specific setting required beyond adding the NetFlow Records integration and allowing the exporter through the Security Onion firewall? I found a few related discussions, especially #11487 and #11871, but they did not appear to match this exact symptom. In my case, I verified not only packet arrival but also v9 template presence and v5 behavior, while Related discussions checkedI found these related discussions, but they do not appear to resolve this specific behavior:
Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Resolved. Firewall issue. This was confusing because tcpdump seeing UDP/2055 on the interface was not enough. The packet still had to pass the Security Onion host firewall before Live and learn. |
Beta Was this translation helpful? Give feedback.
Resolved. Firewall issue.
The NetFlow integration was working. OPNsense was exporting valid NetFlow. The Security Onion Fleet-managed
agentbeatinput was capable of decoding and indexing the packets. What was missing was allowing the OPNsense exporter through Security Onion’s host firewall on UDP/2055. Doing this from the SOC GUI did not work, had to use the command line.This was confusing because tcpdump seeing UDP/2055 on the interface was not enough. The packet still had to pass the Security Onion host firewall before
agentbeatcould receive it.Live and learn.