<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- For license information see sanewall-manual-info.xml.in -->
<refentry id="helpconf-tosfix">

<refmeta>
<refentrytitle>tosfix config helper: sanewall-tosfix</refentrytitle>
<manvolnum>5</manvolnum>
</refmeta>

<refnamediv>
<refdescriptor>sanewall-tosfix</refdescriptor>
<refname>sanewall-tosfix</refname>
<refpurpose>apply suggested TOS values to packets</refpurpose>
</refnamediv>

<refsynopsisdiv>
  <cmdsynopsis>
    <command>tosfix</command>
  </cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>Description</title>
  <para>
    The <command>tosfix</command> helper command sets the
    Type of Service (TOS) field in packet headers based on the
    suggestions given by Erik Hensema in
    <ulink url="http://www.docum.org/docum.org/faq/cache/49.html">
       iptables and tc shapping tricks
    </ulink>.
  </para>
  <para>
    The following TOS values are set:
    <itemizedlist>
      <listitem><para>
        All TCP ACK packets with length less than 128 bytes are
        assigned Minimize-Delay, while bigger ones are
        assigned Maximize-Throughput
      </para></listitem>
      <listitem><para>
        All packets with TOS Minimize-Delay, that are bigger than
        512 bytes are set to Maximize-Throughput, except for short
        bursts of 2 packets per second
      </para></listitem>
    </itemizedlist>
  </para>
  <para>
    The <command>tosfix</command> command
    must be used before the first router or interface.
  </para>
</refsect1>

<refsect1><title>See Also</title>
  <simplelist type="vert">
    <member><xref linkend="sanewall"/></member>
    <member><xref linkend="sanewall.conf"/></member>
    <member><xref linkend="helpconf-tos"/></member>
    <member>administration tool for IPv4 firewalls: iptables(8)</member>
  </simplelist>
</refsect1>

</refentry>
