Chapter 16
Traffic Control and Classification
RUGGEDCOM ROX II
CLI User Guide
704 Configuring QoS Marking
Configuring a Set Mark
1. Make sure the CLI is in Configuration mode.
2. Select the Set option by typing:
qos traffic-control advanced-configuration tcrules name mark-choice set
Where:
• name is the name of the traffic control rule
3. Configure the following parameter(s):
NOTE
The chain-options parameter specifies the chain in which the rule will be processed.
• Pre-Routing - Mark the connection in the PREROUTING chain.
This can be used with DNAT, SNAT and Masquerading rules in the firewall. An example of such a
rule is Source.IP:192.168.2.101, Chain-option: preroute or default, but the actual Source.NAT
address is 2.2.2.2.
• Post-Routing - Mark the connection in the POSTROUTING chain.
This can be used with DNAT, SNAT and Masquerading rules in the firewall. An example of
such rule is Destination.IP:192.168.3.101, Chain-option:preroute or default. In this case,
the actual destination address is 192.168.3.101, but it will be translated to 192.168.3.33
by DNAT. Another example of a traffic control rule is Destination.IP:192.168.3.33, Chain-
option:postrouting.
• Forward - Mark the connection in the FORWARD chain.
This is the default chain option and it can be used for normal IP traffic without any address or
port translation.
Parameter Description
object { object } Synopsis: { packet, connection }
Default: packet
Sets the mark on either a packet or a connection.
mark { mark } Synopsis: A string
A mark that corresponds to a class mark (decimal value).
mask { mask } Synopsis: A string
(optional) A mask to determine which mark bits will be set.
chain-options { chain-options } Synopsis: { forward, postrouting, prerouting }
Default: forward
A chain where the set operation will take place.
4. Type commit and press Enter to save the changes, or type revert and press Enter to abort.
Configuring a Modify Mark
1. Make sure the CLI is in Configuration mode.
2. Select the Modify option by typing:
qos traffic-control advanced-configuration tcrules name mark-choice modify
Where: