IBM Security QRadar

 View Only
Expand all | Collapse all

Netflow Monitoring on Flow Processor

  • 1.  Netflow Monitoring on Flow Processor

    Posted Tue March 23, 2021 11:25 AM
    Hello Experts,

    I have a flow processor that is supposed to receive NetFlow traffics from Cisco devices on the management interface (eno1), but I cant see any traffic.

    I have done the troubleshooting steps,


    •  I have created a flow source with flow source type "Netflow/ipfix" on the interface(eno1), and deployed changes.
    • While creating the NetFlow Configuration on the cisco device, i used the template specified in the qradar admin guide.
    • Ran the "show flow monitor name <monitor_name> cache" on the Cisco device, and confirmed that flows are been generated for the device.
    • Also confirmed that the default NetFlow port (2055) used by qradar is opened between the Cisco device and the QRadar FP.
    • With tcpdump -i eno1 port 2055, I see no traffic on the qradar FP.
    Are there services or tools on Qradar that can be used to troubleshoot/resolve this issue?

    Kindly assist.



    ------------------------------
    benjamin Nworah
    ------------------------------


  • 2.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 24, 2021 07:49 AM
    Hello Experts,

    I noticed something on QRadar, i ran a netstat command below;

    netstat -ltpun | grep ":2055" , QRadar returned nothing, the port is not listening. 

    I changed the default port (2055) to 2057, and ran the netstat command again after deploying changes, and the command returned nothing again.

    netstat -ltpun | grep ":2057"

    Regards,

    ------------------------------
    benjamin Nworah
    ------------------------------



  • 3.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 24, 2021 10:33 AM
    1.) Ideally, once you enable the flow to be forwarded to one of the interfaces, QRadar will auto-detect it.
    2.) Make sure you have selected the correct Target Flow Collector.
    3.) In System and License Management, Select your FP and verify the host connection settings.

    Hope this will help..!!

    Cheers..!!

    ------------------------------
    Namit Maurya
    ------------------------------



  • 4.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 24, 2021 11:10 AM
    Hello Namit,

    1) I have the target Flow collector with my FP selected.
    2) In system and License Management, i have my FP set up and under network management, the management Interface (eno1) is up. Infact running "tcpdump -i eno1" i can see traffic, but not on the default port  (2055) or 2057 (newly created port)

    As I mentioned the issue is that the default port (2055) is not listening, even when i changed to a new port, it is still not listening. I have restarted the qflow service, but the issue still remains.

    I tested this on my QRadar CE test lab, and the default port(2055) is listening when I run netstat -ltpun | grep ":2055" 

    Thank You.


    ------------------------------
    benjamin Nworah
    ------------------------------



  • 5.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 01:48 AM
    Hello Experts,

    Please, I would appreciate if I get a feedback on this issue.

    Regards,


    ------------------------------
    benjamin Nworah
    ------------------------------



  • 6.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 02:28 AM

    Hey Benjamin!

    This comment "With tcpdump -i eno1 port 2055, I see no traffic on the qradar FP." indicates that your exporter isn't successfully sending traffic to QRadar. Check any firewalls and make sure the exporter has started sending the flow reports. 

    As for your netstat command, this could be not showing any results because you have set QFlow to listen on a specific interface rather than "Any". You could try change the flow source to "Any" to see if the netstat results change, but I would focus your efforts on resolving the issue above first.

    Regards



    ------------------------------
    Holly Wright
    ------------------------------



  • 7.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 02:40 AM
    Edited by benlinux Thu March 25, 2021 02:52 AM
    Hello Holly,

    Thank you for the feedback, But as i stated previously, the external firewall is not dropping the traffic to the QRadar FP.

    But I will define a rule explicitly to allow communicate through the port (2055) to QRadar.

    Regards,

    ------------------------------
    benjamin Nworah
    ------------------------------



  • 8.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 03:48 AM
    Hello Holly,

    But for QRadar to receive NetFlow, a specific interface (management) is meant to be used as the monitoring interface rather than "Any"?

    Regards,

    ------------------------------
    benjamin Nworah
    ------------------------------



  • 9.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 08:15 PM

    Hey Benjamin,

    Actually we recommend people use "Any" if they can because this also allows fragmented packets to be reassembled. You should find that after switching to Any your netstat command will work. I checked and in my environment if I choose a specific interface the netstat command returns no results - but I still receive flows - and on "Any" the command returns fine.

    As such, you should be able to leave it as eno1 and once you start sending flows to port 2055 (which you can verify using the tcpdump command you mentioned earlier) you should see them in Network Activity. Or, if you want to see the netstat result try change it to Any (which may have its benefits if your exporter sends fragmented packets anyway).

    Regards



    ------------------------------
    Holly Wright
    ------------------------------



  • 10.  RE: Netflow Monitoring on Flow Processor

    Posted Thu March 25, 2021 09:17 PM
    Edited by benlinux Thu March 25, 2021 09:19 PM
    Hello Holly,

    Thank you for the insight. I tried the same netstat command by changing from specific Interface to "Any", and i noticed that only "Any" return the listening output. But though that got me wondering why does it work that way, nevertheless I have advised the client to explicitly create a rule to permit the NetFlow traffic from the Cisco device to Qradar FP on port 2055 (UDP).

    For the Cisco device, I can see NetFlow within the cache of the device itself when I run "show flow monitor name <monitor_name> cache", and the QRadar FP IP address was specified when creating the exporter.

    I just hope the firewall rule fixed the issue.

    Regards,


    ------------------------------
    benjamin Nworah
    ------------------------------



  • 11.  RE: Netflow Monitoring on Flow Processor

    Posted Fri March 26, 2021 05:41 AM
    Edited by benlinux Fri March 26, 2021 06:02 AM

    Hello Holly,
    Thank you for the insight. I tried the same netstat command by changing from specific Interface to "Any", and i noticed that only "Any" return the listening output. But though that got me wondering why does it work that way, nevertheless I have advised the client to explicitly create a rule to permit the NetFlow traffic from the Cisco device to Qradar FP on port 2055 (UDP).

    For the Cisco device, I can see NetFlow within the cache of the device itself when I run "show flow monitor name <monitor_name> cache", and the QRadar FP IP address was specified when creating the exporter.

    I just hope the firewall rule fixed the issue.

    Regards,


    ------------------------------
    benjamin Nworah



  • 12.  RE: Netflow Monitoring on Flow Processor

    Posted Fri March 26, 2021 07:00 AM
    Hello Holly,

    The firewall permission was the issue, it is now working.

    Thanks a lot.


    ------------------------------
    benjamin Nworah
    ------------------------------



  • 13.  RE: Netflow Monitoring on Flow Processor

    Posted Tue March 30, 2021 05:35 AM
    Hello Experts,

    Flow source is not displaying NetFlow activity on the "Network Activity" tab. I can see traffic on the QRadar FP using the tcpdump command from the cisco device.

    This NetFlow source was not auto detected by QRadar, so I manually added it via the flow source aliases section under Admin, after which I deployed changes. 

    I cant filter for this flow source, for the flow source that is working in my environment, I would see the netflow activity by filtering for "flow interface". Running "tail -f /var/log/qradar.log | grep -i ip_address_fp" I see only the manually created flow source.

    Kindly assist!!

    ------------------------------
    benjamin Nworah
    ------------------------------



  • 14.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 31, 2021 02:35 AM

    Hey Benjamin, 

    To confirm, you are saying you can see the traffic but when you click on the record to view Flow Details the "Flow Interface" field doesn't have the expected values? If you can see the manually created flow source in the logs then that could be the one receiving the traffic. 

    You may need to open a support case so that a support engineer can jump onto your system and look at your specific configuration.

    Thanks,



    ------------------------------
    Holly Wright
    ------------------------------



  • 15.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 31, 2021 04:23 AM
    Hello Holly,

    Thank you for your response.

    As i mentioned i have two Cisco routers, both devices are sending traffic to the Qradar FP, i confirmed this using the tcpdump -i <interface> host x.x.x.x and port 2055. where the x.x.x.x represent the individual cisco device.

    One of the devices, QRadar auto detected the flow source, so what i did was to deploy changes. After which i confirmed that the device appeared under the flow source alias section with name "default_netflow_x.x.x.x", also to confirm flows for this particular device, i went to Network activity tab, and filtered for flows source, but could not find the default_netflow_x.x.x.x seen on the flow source alias section, I then filtered for the flow interface, with this filtering option, i saw the default_netflow_x.x.x.x, it appeared as <QRadar_FP_Name>_default_netflow_x.x.x.x and I confirmed real-time flows coming from that device.

    For the other device, QRadar was not able to auto detect it despite QRadar receiving flows from this device, this was confirmed using the tcpdump as mentioned above. I then manually added this flow source under flow source alias section named "Router2", and deployed changes. However when i go to filter for the flow source interface under the "Network Activity" tab, i could not find this newly added flow source i.e. "Router2". I was expecting to see <QRadar_FP_Name>_Router2 I also searched using the source/destination ip address filter for this particular source, and it returned nothing.

    I restarted the qflow --> systemctl restart qflow, performed full deployment, but these steps didn't fix the issue

    I decided to create a new flow source with port 2056,but we are yet to change the destination port from 2055 to 2056 on the device, as well as permit this port on the firewall.

    Hope this is clear.

    Regards,


    ------------------------------
    benjamin Nworah
    ------------------------------



  • 16.  RE: Netflow Monitoring on Flow Processor

    Posted Wed March 31, 2021 11:55 PM

    Hey Benjamin,


    It's hard to tell without being able to look around your system but it may be because that IP address had already had a flow source alias created for it in the past. If we have previously seen that IP address we will use whatever alias was auto-generated for it in the past. As such, those flows may be present on your system, they just might be under a different Flow Interface name to what you would expect. You can jump into the Flow Source Alias admin screen to see if that might be the case.

    Thanks,



    ------------------------------
    Holly Wright
    ------------------------------



  • 17.  RE: Netflow Monitoring on Flow Processor

    Posted Thu April 01, 2021 03:32 AM
    Hello Holly,

    Thank you for your response.

    This is a fresh implementation of NetFlow, so no flow source alias existed previously. How many flow records does QRadar need to receive before it auto-detect a flow source?

    I guess i will have to open a case with IBM Support on this. 

    ------------------------------
    benjamin Nworah
    ------------------------------



  • 18.  RE: Netflow Monitoring on Flow Processor

    Posted Mon April 05, 2021 07:31 PM

    Hey Benjamin, 

    QRadar only needs to receive one flow record before we create an alias for it, which you should then be able to view in the Flow Source Aliases admin screen. I think opening a ticket with support is the best course of  action though, they should be able to view your config and explain what's happening there.

    Thanks,



    ------------------------------
    Holly Wright
    ------------------------------