Skip to main content
HS08
Contributor III
June 2, 2023
Question

Netflow

  • June 2, 2023
  • 7 replies
  • 4939 views

Hello,

 

I have 3 question regarding netflow/sflow and hope in this room there are anybody who can help me.

1. As i know fortinet have netflow and sflow feature, which one is more recommended to use?

2. If we apply netflow/sflow in outside interface it's true that captured traffic only showing conversation from NATed Public IP to the internet?

3. If we apply netflow/sflow in inside interface it's true that captured traffic only showing conversation from private ip to the internet?

7 replies

Stephen_G
Staff & Editor
Staff & Editor
June 5, 2023

Hello,


Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.

In the meantime, perhaps this document will help you decide which type is best for your network to use: https://docs.fortinet.com/document/fortigate/7.2.4/hardware-acceleration/631057/sflow-and-netflow-and-hardware-acceleration


Thanks,

Stephen_G - Fortinet Community Team
akristof
Staff
Staff
June 6, 2023

Hi,

I think these links will have most of the answers for your questions.

https://docs.fortinet.com/document/fortigate/7.4.0/administration-guide/998643/netflow

https://docs.fortinet.com/document/fortigate/7.4.0/administration-guide/505119/sflow

 

I am not sure which is better, probably sFlow as it has more information about the traffic, but personally I don't have experience with sFlow.

Yurisk
SuperUser
SuperUser
June 6, 2023

Hi, I did both, and from experience:

 

  1. sFlow can only send sampled information, so it provides statistical samples over period of time. It was done to save on agent resources back long time ago by HP, and it was the only protocol supported by Fortigate in the beginning. Today, I don't see value in using sFlow to save resources (unless you monitor 10s of Gigabit traffic, but I have no such set ups) as opposed to Netflow. Netflow can send info either on each packet passing the interface, or sampled  over few packets (Netflow v9). So, Netflow gives you the choice - monitor each packet or a sample. And I haven't seen netflow daemon on FGT to load CPU more than 1-2% even on loaded firewalls. So, I'd recommend to use Netflow. Additionally, being invented by Cisco, Netflow has much more available collectors than sFlow to pick from.
  2. You will see IPs as they present in the packets passing the interface, just before the packet leaves the given interface. So, for WAN interface you will see IPs after Source/Hide NAT was done (i.e. you will see legal IPs).
  3. Not exactly - even in LAN each packet can have Source IP (private) and Destination IP (some host on the Internet).
yurisk.info - all things Fortinet blog, no ads
kuzma
Explorer
February 19, 2024

Hi, 

I tried the sFlow and got the following result. If the sampler was set to 1/10, then when I sent 1GB of traffic, I saw 100MB in collector. If the sampler is 1/100, then I saw 10MB. If 1/1000, then 1MB. Is this the correct sFlow behavior?

 

Thanks.

kuzma
Explorer
February 27, 2024

Nobody knows. Misfortune.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!