SonicOS 8 Device AppFlow

External Collector

The External Collector tab in AppFlow lets you configure the reporting of flow data to an external IP Flow Information Export (IPFIX) collector. IPFIX is a standard protocol for exporting flow data, which is typically used for network traffic analysis. When you configure AppFlow to report to an external IPFIX collector, it sends flow data to the collector for further analysis and storage. This can be useful for a variety of purposes, such as identifying trends and patterns in network traffic, troubleshooting network issues, and performing security and compliance monitoring.

To size the external collector, estimate the event rate (AppFlow records per second), the retention period, and the storage capacity you need. Use the collector vendor’s sizing guide to calculate the required resources.

You can use an external collector such as SonicWall Analytics. For more information, see the Analytics administration guide in the Technical Documentation portal.

  • Send Flows and Real-Time Data To External Collector – Sends the specified flows to an external collector. This option is off by default.

After you turn this option on or off, you might need to restart the firewall for the change to take full effect.

  • External Flow Reporting Format – If Send Flows and Real-Time Data To External Collector is on, select the flow-reporting type from the drop-down menu:
    • NetFlow version-5 (default)
    • NetFlow version-9
    • IPFIX
    • IPFIX with extensions
  • Your selection for External Flow Reporting Format changes the available options.
  • The firewall supports IPFIX with extensions Ve2 when you turn on an internal setting. To turn on this setting, contact SonicWall Support. The IPFIX extension version that the firewall uses depends on the receiving collector. NSM-managed reporting supports the applicable SonicWall extension format when both the firewall and the receiving collector support that version. For NSM-managed Ve3 reporting, see Configuring IPFIX.
  • If the reporting type is set to:
    • NetFlow versions 5 or 9 or IPFIX, then you can use any third-party collector to show flows that the firewall reports and that use standard data types defined by the IETF (Internet Engineering Task Force). NetFlow versions and IPFIX reporting types contain only connection-related flow details per the standard.
    • IPFIX with extensions, then only collectors that are SonicWall-flow aware can be used to report SonicWall dynamic tables for:
      • Connections
      • Users
      • URLs
      • URL ratings
      • VPNs
      • Devices
      • SPAMs
      • Locations
      • VOIPs
    • Flows reported in this mode can either be viewed by another SonicWall firewall configured as a collector (especially in a High Availability (HA) pair, with the standby firewall acting as a collector) or a SonicWall Linux collector. Some third-party collectors can also use this mode to display applications if they use standard IPFIX support. However, not all reports are visible in a third-party collector.
    • When using IPFIX with extensions, select a third-party collector that is SonicWall-flow aware, such as SonicWall Scrutinizer (from Plixer).
    • External Collector’s Server Address – Select IP or AddrObj, and specify the IP address or address object (AddrObj) of the external collector to which the firewall sends flows through NetFlow or IPFIX. This IP address must be reachable from the SonicWall firewall for the collector to generate flow reports. If the collector is reachable through a VPN tunnel, you must specify the source IP in Source IP To Use For Collector On A VPN tunnel.
    • Source IP To Use For Collector On A VPN tunnel – If the external collector must be reached through a VPN tunnel, specify the source IP for the correct VPN policy.
    • Select Source IP from the local network specified in the VPN policy. If specified, NetFlow/IPFIX flow packets always take the VPN path.
    • External Collector’s UDP Port Number – Specify the UDP port number that NetFlow and IPFIX packets are sent to. The default port is 2055.
    • Send IPFIX/Netflow Templates At Regular Interval – Enables the firewall to send template flows at regular intervals. This option is on by default.
    • This option is available only with NetFlow version 9, IPFIX, and IPFIX with extensions.
    • NetFlow version 9 and IPFIX use templates that the external collector must know before the firewall sends data. Per the IETF, a reporting device must be able to send templates at a regular interval to keep the collector in sync with the device. If the collector does not need templates at regular intervals, you can turn off this function here.
    • Send Static AppFlow At Regular Interval – Enables the hourly sending of IPFIX records for the selected static AppFlow tables. This option is off by default.
    • This option is available only with IPFIX with extensions. You must turn on this option if SonicWall Scrutinizer is used as a collector.
    • Send Static AppFlow For Following Tables – Select the static mapping tables to export from the drop-down menu. For more information on static tables, refer to NetFlow Tables.
      • Applications (selected by default)Services (selected by default)
        Viruses (selected by default)Rating Map (selected by default)
        Spyware (selected by default)Table Map
        Intrusions (selected by default)Column Map
        Location Map

  • When running in IPFIX with extensions mode, the firewall reports multiple types of data to an external device to correlate User, VPN, Application, Virus, and Spyware information. Data is both static and dynamic. Static tables are needed only once as they rarely change. Depending on the capability of the external collector, not all static tables are needed.
    • In the IPFIX with extension mode, the firewall can asynchronously generate the static mapping tables to synchronize with the external collector. This synchronization is needed when the external collector is initialized later than the firewall.
    • Send Dynamic AppFlow For Following Tables – Select the dynamic mapping tables to export from the drop-down menu. For more information on dynamic tables, refer to NetFlow Tables.
    • This option is available with IPFIX with extensions only. The firewall generates reports for the selected tables. Because the firewall does not cache this information, flows that are not sent can cause correlation failures at the collector.
    • Connections (selected by default)Devices
      Users (selected by default)SPAMs
      URLs (selected by default)Locations
      URL ratings (selected by default)VOIPs (selected by default)
      VPNs (selected by default)

      • Include Following Additional Reports via IPFIX – Select the additional IPFIX reports to export from the drop-down menu. By default, none are selected. The firewall reports statistics every five seconds.
      • This option is available only with IPFIX with extensions.
        • System Logs – Generates system logs such as interface state change, fan failure, user authentication, HA failover and failback, tunnel negotiations, and configuration changes. System logs include events that are typically not flow-related (session/connection) events, that is, not dependent on traffic flowing through the firewall.
        • Top 10 Apps – Generates the top 10 applications.
        • Interface Stats – Generates per-interface statistics such as interface name, interface bandwidth utilization, MAC address, link status.
        • Core utilization – Generates per-core utilization.
        • Memory utilization – Generates the amounts of available memory, used memory, and memory used by the AppFlow collector.
      • In IPFIX with extensions mode, the firewall can report more data that is not related to connections and flows. These tables are grouped under this section (Additional Reports). Depending on the capability of the external collector, not all additional tables are needed. With this option, you select the tables that you need.
      • Report On Connection OPEN – Reports flows when a new connection is established. Not all associated data for that connection might be available when the connection opens. This option, however, makes flows appear on the external collector as soon as the new connection is established. This option is on by default.
      • Report On Connection CLOSE – Reports flows when a connection is closed. This is the most efficient way of reporting flows to an external collector. All associated data for that connection is available and reported. This option is on by default.
      • Report Connection On Active Timeout – Reports a long-lived connection each time the active timeout elapses. The active timeout is the number of seconds that a connection stays active before the firewall reports it again. This option is off by default.
      • If you select this option, you cannot also select Report Connection On Kilobytes Exchanged. If that option is already selected, a message appears when you try to select Report Connection On Active Timeout:
      • Number Of Seconds – Specify the active timeout in seconds. The range is 1 to 999; the default is 60.
      • Report Connection On Kilobytes Exchanged – Reports flows based on when a specific amount of traffic, in kilobytes, is exchanged. If this option is on, the firewall reports an active connection whenever the specified number of kilobytes of bidirectional data is exchanged on an active connection. This option is ideal for flows that are active for a long time and need to be monitored. This option is off by default.
      • If you select this option, you cannot also select Report Connection On Active Timeout. If that option is already selected, a message appears when you try to select Report Connection On Kilobytes Exchanged:
      • Kilobytes Exchanged – Specify the amount of data, in kilobytes, transferred on a connection before reporting. The default value is 100 kilobytes.
      • Report ONCE – When Report Connection On Kilobytes Exchanged is on, the firewall reports the same flow multiple times whenever the specified amount of data is transferred over the connection. This can generate a large number of IPFIX packets on a busy firewall. Turning on this option sends the report only once. This option is on by default.
      • Report Connections On Following Updates – Select from the drop-down menu the updates for which the firewall reports connections (by default, all are selected):
        SelectionDescription
        threat detectionSpecific to threats. Upon detection of a virus, intrusion, or spyware, the firewall reports the flow again.
        application detectionSpecific to applications. Upon completing a deep packet inspection, the firewall can detect whether a flow is part of a certain application. When the firewall identifies the application, it reports the flow again.
        user detectionSpecific to users. The firewall associates flows with a user based on the user’s login credentials. When the firewall identifies the user, it reports the flow again.
        VPN tunnel detectionFlows that pass through a VPN tunnel. When the firewall identifies a flow as VPN traffic, it reports the flow again.
        URL detectionSpecific to website URLs. The firewall identifies and extracts URLs from flows based on observed application data and associates them with the corresponding connection. When the firewall identifies a URL, it reports the flow again.
      • Actions – Generate templates and static flow data asynchronously when you click these buttons:
        • Generate ALL Templates – Click the button to generate the templates and send them to the IPFIX collector. This takes up to two minutes.
        • This option is available only with NetFlow version 9, IPFIX, and IPFIX with extensions.
        • Generate Static AppFlow Data – Click the button to generate a large number of flows and send them to the IPFIX collector. This takes up to two minutes.
        • This option is available only with IPFIX with extensions.
      • Send Log Settings To External Collector – Sends the necessary fields of log settings to the external collector when you click Send All Entries.
      • This option appears only when IPFIX with extensions is selected for External Flow Reporting Format.
      • Ensure that the connection between SonicOS and the external collector is ready before you click Send All Entries.

      • Click Send All Entries again to synchronize the settings when:
        • SonicOS is upgraded and has new log events.
        • The connection between SonicOS and the external collector has been down for some time and log settings might have been edited.