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

Site to site VPN with FEC ESP errors

I have a site to site VPN between an on-prem FortiGate 500E and a vFortiGate in Azure.

Due to the distance between the FortiGates geographically, I’m trying out Forward Error Correction (FEC) ingress and egress on both FortiGates to see if it can improve on lost UDP traffic (main issue, missing RADIUS packages).

 

To use FEC on VPN, Fortinets dokumentation note that NPU acceleration has to be disabled on the Phase1.

This has been done on the FGT500E as it can use NPU. The vFGT in Azure does not. 

 

I’m seeing ESP errors in my VPN event log.

As FEC re-transmit some packeges, this makes sence to me, as an ESP packet with a sequence number could be re-transmitted. 

 

Ofcause, I could deaktivere anti-replay on phase2 and the events would go away.

The official documentation that I have looket at, at docs.fortinet.com does not say anything about that ESP errors is a side-effect of enabling the feature. 

 

I guess my question is, am I missing something? I find it a bit odd that I would have to disable a Security feature to be able to make use of a reliability feature. 

Kind regards
Kind regards
1 Solution
JonasV
New Contributor III

Looks like Firmware upgrading the Azure vFortiGate from 6.4.9 => 7.0.12 has solved the issue with the ESP erros. At least I don't see them anymore after the upgrade.

Root cause remains unresolved on 6.4.9 though.

Kind regards

View solution in original post

Kind regards
5 REPLIES 5
hbac
Staff
Staff

Hi @JonasV,

 

Can you share the ESP error messages and phase2 configuration? 

 

Regards,

JonasV
New Contributor III

Sure @hbac 
Screenshot_2023-09-04_at_08_28_03.pngScreenshot_2023-09-04_at_08_35_42.png

Kind regards
Kind regards
KumarV
Staff
Staff

Hi @JonasV 

 

Various errors can occur with ESP (Encapsulating Security Payload), but among them, the most frequently encountered is "Invalid ESP Packet detected" If you encounter this particular error, it is highly probable that it is attributable to the following factors.

  1. The encrypted packet becomes corrupted during the transmit from the remote gateway to local gateway.
  2. The remote gateway used the wrong cookie/key to encrypt.
  3. The local gateway calculated incorrectly.

You can check this link https://community.fortinet.com/t5/FortiGate/Explanation-of-the-Event-Log-error-quot-Invalid-ESP-pack...

 

Regards,

JonasV
New Contributor III

@KumarV 
Indeed, you are right.

However these errors started after I enabled FEC. They did not appear before.
Also based on the nature of FEC, that uses transmitted packages I makes sense why anti-replay would react on ESP packages with a sequence number that could have been received.

 

I was just not expected to see any errors, and I would expect FortiOS to somehow be able to "understand" that with FEC enabled, duplication of ESP packages may occur, hence "foresee" this and ignore this without me having to disabled anti-replay.

Kind regards
Kind regards
JonasV
New Contributor III

Looks like Firmware upgrading the Azure vFortiGate from 6.4.9 => 7.0.12 has solved the issue with the ESP erros. At least I don't see them anymore after the upgrade.

Root cause remains unresolved on 6.4.9 though.

Kind regards
Kind regards
Labels
Top Kudoed Authors