firehol-dscp(5)
π firehol-dscp π
okay bestie, welcome to firehol-dscp, the FireHOL helper that sets the DSCP field in the packet header. this is from the FireHOL Reference (version 3.1.8), and it's lowkey one of the most useful lil commands for QoS shaping. let's get into it π
β¨ SYNOPSIS β¨
dscp { value | class classid } chain rule-params
πΈ DESCRIPTION πΈ
so, the dscp helper command sets the DSCP field in the header of packets traffic, which lets you do QoS shaping. it's giving traffic control, it's giving main character energy β¨
Note there is also adscpparameter which allows matching DSCP values within individual rules (seefirehol-params(5)). yes, two different things, same name. iykyk π
set value to a decimal or hexadecimal (0xnn) number to set an explicit DSCP value, or use class classid to use an iptables(8) DiffServ class, like EF, BE, CSxx or AFxx (see iptables -j DSCP --help for more information). pick your fighter π
the chain will be used to find traffic to mark. it can be any of the iptables(8) built in chains belonging to the mangle table. the chain names are: INPUT, FORWARD, OUTPUT, PREROUTING and POSTROUTING. and bestie, the names are case-sensitive, so don't be out here typing input and wondering why nothing happened π
the rule-params define a set of rule parameters to match the traffic that is to be marked within the chosen chain. see firehol-params(5) for more details π¦
anydscpcommands will affect <strong>all</strong> traffic matched. they <strong>must</strong> be declared before the firstrouterorinterface. no cap, put them at the top or they will simply not slay π
π EXAMPLES π
# set DSCP field to 32, packets sent by the local machine
dscp 32 OUTPUT
# set DSCP field to 32 (hex 20), packets routed by the local machine
dscp 0x20 FORWARD
# set DSCP to DiffServ class EF, packets routed by the local machine
# and destined for port TCP/25 of 198.51.100.1
dscp class EF FORWARD proto tcp dport 25 dst 198.51.100.1
π SEE ALSO π
firehol(1)β FireHOL programfirehol.conf(5)β FireHOL configurationfirehol-params(5)β optional rule parametersiptables(8)β administration tool for IPv4 firewallsip6tables(8)β administration tool for IPv6 firewallsip(8)β show / manipulate routing, devices, policy routing and tunnels- FireHOL Website
- FireHOL Online PDF Manual
- FireHOL Online Documentation
- Linux Advanced Routing & Traffic Control HOWTO
π AUTHORS π
FireHOL Team. iconic of them, honestly π«Ά
and that's the whole vibe, bestie π this page came from the FireHOL Reference, version 3.1.8, built 13 Apr 2025 β go forth and mark your packets, you absolute legend π
π¦ where this page comes from
- debian trixie: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- ubuntu resolute: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- ubuntu stonking: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms