Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-20-2018, 08:51 AM   #1
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
Question QoS DSCP using firewalld in CentOS7

with iptables it was easy to tag packets with DSCP tags for QoS in local networks, e.g.
iptables -t mangle -A OUTPUT -d -j DSCP --set-dscp-class AF21
Now CentOS7 comes with firewalld, which AFAIK should be a more powerful iptables replacement.
Unfortunately I wasn't able to find anything documented how QoS DSCP tagging could be done using firealld-cmd, not even using FirewalldRichRules/FirewalldRichLanguage.

Did anybody come across how the ip tables DSCP tagging above would be translated to firewalld?
Old 12-26-2018, 02:38 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,737

Rep: Reputation: 154Reputation: 154
You can check following link,
1 members found this post helpful.
Old 12-27-2018, 09:06 AM   #3
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Original Poster
Rep: Reputation: 38
thanks nini09, that helped!
the link you provided gives an idea but it seems to be much easier:

firewall-cmd --permanent --direct --add-rule ipv4 mangle OUTPUT 0 -d -j DSCP --set-dscp-class AF21
so basically the syntax is almost the same as in iptables, but the documentation seems to be poor (at least for me...).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any problem if I install CENTOS7 Workstation over CENTOS7 Server? Rich Strebendt Linux - Software 5 05-03-2018 11:05 PM
Firewalld on Centos7 trackstar2000 Linux - Newbie 12 04-17-2017 04:29 PM
iptables and firewalld on RHEL7/Centos7 sigint-ninja Linux - Newbie 5 05-26-2016 08:15 AM
Is DSCP tagging (for QoS) honored on the loopback? gburtenshaw Linux - Networking 0 03-13-2009 10:18 AM
[C/C++] DSCP (DiffServ Code Points) and QoS dwhitney67 Programming 0 03-05-2009 03:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration