LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2018, 08:51 AM   #1
dt64
Member
 
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.
Code:
iptables -t mangle -A OUTPUT -d 10.1.2.3/32 -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
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,701

Rep: Reputation: 143Reputation: 143
You can check following link, https://github.com/eapugo/Ansible-fi...tasks/main.yml.
 
1 members found this post helpful.
Old 12-27-2018, 09:06 AM   #3
dt64
Member
 
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:

Code:
firewall-cmd --permanent --direct --add-rule ipv4 mangle OUTPUT 0 -d 10.1.2.3/32 -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...).
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:13 PM.

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