ASA - How do I enable Netflow on an ASA?

NetFlow is a network protocol developed by Cisco Systems to run on a range of network devices for collecting IP traffic information.

Previously only Cisco IOS routers and the Cisco 5580 ASA supported Netflow. But now with the introduction of Cisco ASA software 8.2, the complete ASA family now supports Netflow.
There are 3 event types that can trigger the creation of a Netflow record. These are `flow-create`, `flow-denied`, `flow-teardown`. You can also use `all` to trigger on any of these 3.

Below shows you an example of how to configure Netflow. In this example the Netflow server is location on the inside interface and has an IP of Along with this all Netflow traffic will be sent via port 9998.
In this example I have added the class-map to the policy-map "global_policy". Which in most cases should already be applied to the ASA globally (all interfaces) via the service-policy command.

ciscoasa(config)# flow-export destination inside 9998
ciscoasa(config)# access-list flow_export_acl permit ip any any

ciscoasa(config)# class-map flow_export_class
ciscoasa(config-cmap)# match access-list flow_export_acl

ciscoasa(config)# policy-map global_policy
ciscoasa(config-pmap)# class flow_export_class
ciscoasa(config-pmap-c)# flow-export event-type all destination

Additional resources :

Tags: ASA

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001