Fortinet Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Jirka1
Contributor III

FortiGate & SNMP IPsec traffic

Hi,

we use FortiGate at a lot of customers and monitor everything using PRTG Network Monitor (latest version 22.3.79.2108).
I found out today that if I monitor traffic in IPsec site2site tunnels I get strange results.

 

Here is a concrete example.

FortiGate 100F (6.4.9). There is one IPsec tunnel on the WAN interface to the central FortiGate 200F (6.4.10). All traffic is routed to the IPsec tunnel, nothing passes to the internet directly through the WAN.

 

This graph is from the WAN interface:

wan.png

and this graph is from an IPsec tunnel:

ipsec.png

 

As you can see there is a huge difference.


But I am unable to determine when this monitoring problem started. I tried deleting and recreating the problematic sensors but that didn't fix the problem. I also tried using SNMPv3 instead of SNMPv2 and also no luck.

I always considered IPsec tunnels as a classic interface (and that's how the PRTG program also approached it) and it always worked.

 

Has anyone encountered a similar problem? Other interfaces (physical, vlans or SSL) are displayed correctly via SNMP.

 

And I also registered that if I view the IPsec tunnel widget on FGT, I only see one direction.widget.png

 

Thank you.

Jirka

9 REPLIES 9
Jirka1
Contributor III

nobody?

gfleming
Staff
Staff

What OID are you using to get the data for that IPSec interface?

Cheers,
Graham
Jirka1

Hi Graham,

I´dont know what OID are used. 

I always selected the "SNMP Traffic" template in PRTG, scanned the FortiGate and it showed me all available interfaces for monitoring - incl. IPsec tunnels, VLAN, SSL interface. There was never problem with it.

It looks like this:
interface.png

All this still works now, with the difference that the data read using SNMP does not correspond to the real load of the IPsec interface.

Can you provide me with a valid OID for traffic and unicast packet monitoring for the IPsec interface? I would try adding it manually.

 

Edit: I found one historic BUG in version 6.2.x:
bug.png
Could this not also be the case?

 

Thanks
Jirka

Jirka1
Contributor III

Graham, 

 

so the problem is the NPU offload. Once I disable it on the IPsec Phase1 interface: 

 

set npu-offload disable

 

both the SNMP graph and the GUI widget display the correct data!

Jirka

gfleming

Oh nice one! I've never heard of that issue before. Going to dig in a bit more on this one because ideally you'd want that traffic offloaded and monitored accurately at the same time. I'll let you know if I find anything else out.

Cheers,
Graham
Jirka1

Thank you I will wait.

gfleming

I believe this might be a bug related to the new NP7 chipset. I suggest calling into TAC to make them aware and so the bug can be validated and fixed.

Cheers,
Graham
Jirka1

Thanks I opened a ticket on TAC.

Jirka

Jirka1
Contributor III

I am forwarding TAC's comments on the existing bug and its workaround:

The particular issue is known, to be more precise the bug ID is [0830252 - IPSec VPN statistics not increasing on device].

It will be fixed in:

1) 6.4.11 expected to be released by the end of October
2) 7.0.7 expected to be released by the in the middle of October
3) 7.2.3 expected to be released in the middle of November

As workaround, I would recommend unsetting the "per-session-accounting" and configure the:

config system np6xlite
edit "np6xlite_0"
set ipsec-STS-timeout 1
next
end

Jirka