Hello ,
I am migrating some firewalls rules from a Cisco router to a FortiGate, any hints on how to convert the rules below matching on the precedence and dscp ?
I found tos-mask under config firewall policy in fortigate, but what this value should be for ef and cs4 ?
thanks in advance , below are the commands on cisco router that I am wanting to migrate to FG
permit udp X.X.X.X 0.255.255.255 any precedence flash
permit udp 1X.X.X.X 0.255.255.255 any precedence flash-override
permit udp any any dscp ef
permit udp any any dscp cs4
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
TOS and DSCP are different markings. You are probably looking for this:
The KB Alex pointed you to is for "marking". For "matching", you can use tos/tos-mask with 6.2 or above.
https://docs.fortinet.com/document/fortigate/6.2.0/new-features/159007/dscp-matching-shaping
In those exacmples, FortiGate A is "marking", and FortiGate B is "matching". The tos/tos-mask is 8bit value in HEX. So my interpretation is
EF(101110)=tos byte(10111000)=0xB8
so,
set tos 0xb8
set tos-mask 0xfc
If I'm wrong, somebody, please correct me.
Toshi
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1688 | |
1087 | |
752 | |
446 | |
227 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.