SonicOS 8 Device AppFlow

IPFIX with Extensions

IPFIX with Extensions combines standard flow information with SonicWall enterprise-defined fields. The SonicWall Enterprise ID is 8741. Collectors must support the applicable SonicWall templates to interpret the exported data.

  • IPFIX Extension Version 2 (Ve2) exports connection data and associated URL data using separate records. The URL Ve2 template includes the URL name, five URL rating values, and URL reputation.

    The following templates are used for Ve2 reporting:

    • Template 456: IPv4 connection flow

    • Template 556: IPv6 connection flow

    • Template 457: URL information, including URL ratings and reputation

  • IPFIX Extension Version 3 (Ve3), introduced in SonicOS 8.2.3, embeds the associated URL information directly in the connection flow record. It also includes source and destination zone names and the CFS policy name.

    The following templates are used for Ve3 reporting:

    • Template 656: IPv4 connection flow with inline URL information, source and destination zone names, and the CFS policy name.

    • Template 756: IPv6 connection flow with inline URL information, source and destination zone names, and the CFS policy name.

IPv6 template support does not turn on IPv6 flow reporting automatically. To report IPv6 flows, clear Disable Reporting IPv6 Flows (ALL) on the DEVICE | AppFlow > Flow Reporting page, Settings tab.

IPFIX with Extensions Template IDs lists the template IDs and table names for IPFIX with extensions. See also IPFIX with Extensions Template Example: Template ID 257 (Flow IPFIX extn), 39 elements, total length 148 bytes.

IPFIX with Extensions Template IDs
Template ID Table name
256 Flow IPFIX
257 Flow IPFIX extn
258 Table Map
259 Column Map
260 User
261 Application
262 URL
263 Rating
264 IPS
265 GAV
266 Anti Spyware
267 Location Map
268 Location
269 Log
270 if-stat
271 core-stat
272 Voip
273 Services
274 Spam
275 memory
276 devices
277 vpn tunnels
278 URL rating
284 Audit Log
285 BWM Monitor (Ve2)
286 Protocol Monitor and User Monitor
456 IPv4 connection flow (Ve2)
457 URL information (Ve2)
556 IPv6 connection flow (Ve2)
656 IPv4 connection flow with inline URL information (Ve3)
756 IPv6 connection flow with inline URL information (Ve3)

The following tables show an example of the fields in the IPFIX with extensions templates. All fields use the SonicWall Enterprise ID 8741.

IPFIX with Extensions Template Example: Template ID 257 (Flow IPFIX extn), 39 elements, total length 148 bytes
Field ID Field bytes Type Name
1 4 unsigned int-32bits time stamp
2 4 unsigned int-32bits flow identifier
3 6 mac address-48bits initiator gw MAC
4 6 mac address-48bits responder gw MAC
5 4 unsigned int-32bits initiator IP Addr
6 4 unsigned int-32bits responder IP Addr
7 4 unsigned int-32bits initiator GW-IP Addr
8 4 unsigned int-32bits responder GW-IP Addr
9 4 unsigned int-32bits initiator iface
10 4 unsigned int-32bits responder iface
167 4 unsigned int-32bits init vpn spi out
168 4 unsigned int-32bits resp vpn spi out
11 2 unsigned int-16bits initiator port
12 2 unsigned int-16bits responder port
13 4 unsigned int-32bits init to resp pkts
14 4 unsigned int-32bits init to resp octets
15 4 unsigned int-32bits resp to init pkts
16 4 unsigned int-32bits resp to init octets
169 4 unsigned int-32bits init to resp delta pkts
170 4 unsigned int-32bits init to resp delta octets
171 4 unsigned int-32bits resp to init delta pkts
172 4 unsigned int-32bits resp to init delta octets
17 4 unsigned int-32bits flow start time
18 4 unsigned int-32bits flow end time
19 2 unsigned int-16bits internal flags
20 1 unsigned char-8bits protocol type
173 1 unsigned char-8bits flow block reason
22 4 unsigned int-32bits flow to application id
23 4 unsigned int-32bits flow to user id
25 4 unsigned int-32bits flow to ips id
26 4 unsigned int-32bits flow to virus id
27 4 unsigned int-32bits flow to spyware id
113 4 unsigned int-32bits flow init pkt rate
114 4 unsigned int-32bits flow resp pkt rate
111 4 unsigned int-32bits flow init octets rate
112 4 unsigned int-32bits flow resp octets rate
115 4 unsigned int-32bits flow init pkt size
116 4 unsigned int-32bits flow resp pkt size
191 4 unsigned int-32bits snwl option
Template ID 258 (table-map), 2 elements, total length 36 bytes
Field ID Field bytes Type Name
28 4 unsigned int-32bits template identifier
29 32 string-null terminated table name
Template ID 259 (column-map), 4 elements, total length 44 bytes
Field ID Field bytes Type Name
30 4 unsigned int-32bits column identifier
31 32 string-null terminated column name
32 4 unsigned int-32bits column type
33 4 unsigned int-32bits column standard IPFIX ID