Created on
09-27-2022
02:39 AM
Edited on
09-27-2022
05:25 AM
By
Anthony_E
Description | This articles describes how to copy the original DSCP marking when return traffic arrives as untagged on the FortiGate. |
Scope | FortiOS 7.2.1+ versions. |
Solution |
Initially, in order to have an understanding regarding the DSCP feature on FortiOS, read this related KB article:
Currently, there are two main ways on how to mark traffic with DSCP:
1) Directly via the firewall policy:
# config firewall policy edit <X> set diffserv-forward enable
2) Or via as SD-WAN rule:
# config system sdwan
Let's assume, there is the below topology:
- End hosts generate traffic towards the servers which are located behind Hub FortiGate.
- Spoke FortiGate is marking the traffic with the configured DSCP values for specific type of traffic.
- Servers usually do not have the capability to mark the right QoS values, so reply traffic is arriving as untagged on Hub FortiGate and traverses without the correct DSCP values on its way back to branch.
- In order to have bidirectional end-to-end QoS markings on the reply traffic as well, it is necessary to configure the firewall policy on the Hub with the below commands:
# config firewall policy edit <X> set diffserv-copy {enable | disable} end
When the particular command is being enabled on a firewall policy, the following commands will become hidden:
# config firewall policy edit <X> diffserv-forward |