Technical Tip: NP7/NP7Lite offloading for site-to-site VPN traffic - tunnel interface attached to EMAC-VLAN interface that is attached to IEEE 802.1Q VLAN Interface
| Description | This article describes NP7 and NP7Lite offloading support for Site-to-Site (S2S) IPsec VPN traffic when the tunnel interfaces are attached to EMAC-VLAN interfaces that are attached to IEEE802.1Q VLAN interfaces and ultimately to physical interfaces. |
| Scope | FortiGate. |
| Solution | Introduction:
In this setup, there's S2S IPsec VPN tunnel, where the tunnel interfaces are attached to an EMAC-VLAN interface. This EMAC-VLAN is attached to a physical-port on the Hub side , and a vlan-interface on the Spoke side. The objective is to confirm NP7 offloading support for the tunnel's traffic. The configuration and topology is as follows:
PC (10.10.201.2)------port6[Hub (FGT2601F)]Hub-----IPsec------Spoke[(FGT201G)]port6----PC (10.10.202.2)
Hub Interfaces:
Spoke Interfaces (same results achieved with the existence of IEEE802.1Q V):
Obtained Results:
FortiGate CLI commands output while running a continuous ping from source PC 10.10.201.2 to destination PC 10.10.202.2 over the tunnel follows (only relevant outputs shown).
Hub:
CLI:
diagnose sys session filter src 10.10.201.2 diagnose sys session filter dst 10.10.202.2 diagnose sys session list
Output:
The npu info: field in the above session output indicates the session has been offloaded to NP7 hardware processor. In addition the npu_flag=03 below indicates the tunnel's IPsec SA was pushed to the NP7 ASIC.
CLI:
diagnose vpn tunnel list
Output:
name=Hub_0 ver=2 serial=2 100.101.2.6:0->100.101.2.5:0 nexthop=0.0.0.0 tun_id=10.10.2.2 tun_id6=::10.0.0.2
Spoke:
CLI:
diagnose sys session filter src 10.10.201.2 diagnose sys session filter dst 10.10.202.2 diagnose sys session list
Output:
The npu info: field in the above session output indicates the session has been offloaded to NP7 ASIC. In addition the npu_flag=03 below indicates the tunnel's IPsec SA was pushed to the NP7 ASIC.
CLI:
diagnose vpn tunnel list
Output:
name=Spoke ver=2 serial=1 100.101.2.5:0->100.101.2.6:0 nexthop=0.0.0.0 tun_id=100.101.2.6 tun_id6=::100.101.2.6
The same results are achieved on running the traffic in the reverse direction, i.e., from a source PC behind the Spoke to a destination PC behind the Hub.
The above was confirmed using factory-default (clean) configuration files with S2S IPsec setups with a basic, non-complex topology. In more advanced deployments - such as environments leveraging SD-WAN, VRRP, VRFs, or similar features—there may be functional limitations affecting NP7/NP7lite hardware offloading of tunnel traffic. These advanced design considerations are beyond the scope of this article.
Note: NP7/NP7Lite processors do not support offloading sessions that will pass through two EMAC-VLAN interfaces. For more information refer to NP7 fastpath and EMAC VLANs. |


