Firewall configuration
Digi TransPort User Guide
674
Assigning DSCP values
When using QOS, packet priorities will be determined by the DSCP values in their TOS fields.
These priorities may have already been assigned but if necessary, the router can be configured to
assign them by inserting the appropriate rules in the firewall. This is done by using the
dscp
command.
For example, the following rule sets the DSCP value to
46
for almost any type of packet received
on
ETH 0
from IP address
100.100.100.25
addressed to
1.2.3.4
on port
4000
. This allows you to
set the DSCP value for almost any type of packet.
dscp 46 in on eth 0 from 100.100.100.25 to 1.2.3.4 port=4000
As a further example, the following rule causes outgoing mail traffic to the same top priority
queue (
46
is, by default, a very high priority code in the DSCP mappings):
dscp 46 in on eth 0 proto smtp from any to any