Provided by: sanewall-doc_1.0.2+ds-2_all bug

NAME

       sanewall-tos - set the Type of Service (TOS) of packets

SYNOPSIS


       tos value chain [rule-params]

DESCRIPTION

       The tos helper command sets the Type of Service (TOS) field in packet headers.

           Note

           There is also a tos parameter which allows matching TOS values within individual rules (see optional
           rule parameters: sanewall-rule-params(5)).

       The value can be an integer number (decimal or hexadecimal) or one of the descriptive values accepted by
       iptables (run iptables -j TOS --help for a list).

       The chain will be used to find traffic to mark. It can be any of the iptables built in chains belonging
       to the mangle table. The chain names are: INPUT, FORWARD, OUTPUT, PREROUTING and POSTROUTING. The names
       are case-sensitive.

       The rule-params define a set of rule parameters to match the traffic that is to be marked within the
       chosen chain. See optional rule parameters: sanewall-rule-params(5) for more details.

       Any tos commands will affect all traffic matched. They must be declared before the first router or
       interface.

EXAMPLES

           # set TOS to 16, packets sent by the local machine
           tos 16 OUTPUT

           # set TOS to 0x10 (16), packets routed by the local machine
           tos 0x10 FORWARD

           # set TOS to Maximize-Throughput (8), packets routed by the local
           #              machine, destined for port TCP/25 of 198.51.100.1
           tos Maximize-Throughput FORWARD proto tcp dport 25 dst 198.51.100.1

SEE ALSO

           Sanewall program: sanewall(1)
           Sanewall configuration: sanewall.conf(5)
           tosfix config helper: sanewall-tosfix(5)
           administration tool for IPv4 firewalls: iptables(8)
           optional rule parameters: sanewall-rule-params(5)

AUTHOR

       Sanewall Team

COPYRIGHT

       Copyright © 2012, 2013 Phil Whineray <phil@sanewall.org>

Sanewall 1.0.2                                  Built 01 Jun 2013                        TOS CONFIG HELPER: S(5)