Skip to main content
msolanki
Staff
Staff
October 14, 2024

Technical Tip: How to change or disable the DSCP marking for ESP traffic

Description

This article describes how to configure and mark IPsec ESP traffic Differentiated Services Code Point.

Scope FortiGate.
Solution

IPSec Encapsulating Security Payload(ESP) traffic can be prioritized through the Differentiated Services Code Point marking.

By default, the FortiGate will actually use the same DSCP marking for the 'inside' encapsulated packet, for the outside encrypted packet.


If it is required to change this, first, it is required to disable the NPU offloading in the Phase 1 config of the tunnel.

This is possible by executing the following commands:

config vpn ipsec phase1-interface 

    edit <tunnel>

     set npu-offload disable

 next

end

 

Once this is done, it is possible to set a specific DSCP marking for this traffic. It can be all zeroes to disable marking.

 

config vpn ipsec phase2-interface

    edit <tunnel>

        set phase1name <tunnel>

        set proposal aes128-sha256

        set diffserv enable     <- Make sure the DSCP option is enabled.

        set diffservcode 101110 <- Configure the DSCP value.

        set src-addr-type name

        set dst-addr-type name

        set src-name "Test_ESP_local"

        set dst-name "Test_ESP_remote

end

Refer to this article for more information on DSCP codes: Technical Tip: Differentiated Services Code Point (DSCP) marking.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT