How can we help?

How to configure NetFlow on Ubiquiti routers

Follow

These instructions assume:

Access the router CLI

  1. Telnet or SSH into the router.
  2. Enter privileged mode by typing enable and entering your enable password.

Configure NetFlow export

Run the following command. Replace AuvikCollectorIP with the IP address of your Auvik collector and AuvikPort with one of the following ports: 2055, 2056, 4432, 4739, 6343, 9995 or 9996.

configure
set system flow-accounting interface <interface>

# Optional parameter if flows should be collected for egress traffic.

set system flow-accounting netflow enable-egress
set system flow-accounting netflow engine-id <0-255>
set system flow-accounting netflow server <AuvikCollectorIP> port <AuvikPort>
set system flow-accounting netflow version 9

commit

Set up the NetFlow sampler

Run the following command:

set system flow-accounting netflow sampling-rate <128, 256, 512, 1024>

Enable and configure export of NetFlow packets 

Run the following command. Replace <AuvikCollectorIP> with the IP address of your Auvik collector, and <AuvikPort> with one of the following port numbers: 2055, 2056, 4432, 4739, 6343, 9995, or 9996. 

set system flow-accounting netflow server <AuvikCollectorIP> port <AuvikPort>
set system flow-accounting syslog-facility daemon
commit
save
exit

Confirm the settings

Run the following command to confirm the configuration: 

sudo ifconfig <INTERFACE>
sudo tcpdump -i any -n port <netflow port>

Reference: 

https://help.ubnt.com/hc/en-us/articles/360008732414-UNMS-v1-NetFlow

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request