<OT>
<PRE>Sorry for the off-topic question.
I want to set the type of service (ToS) for all the traffic leaving my machine. All out going traffic.
How can I do this?
ipchains?
Thanks in advance,
Signature · 5 lines
--Paul </PRE>
<PRE>Sorry for the silly question. I was missing CONFIG_IP_ROUTE_TOS in my kernel, and possibly another thing.
Thanks,
Paul
On Tue, 9 Jan 2001 <A HREF="mailto:[email protected]">[email protected]</A> wrote:
><i> Sorry for the off-topic question.
</I>><i>
</I>><i> I want to set the type of service (ToS) for all the traffic leaving my </I>><i> machine. All out going traffic.
</I>><i>
</I>><i> How can I do this?
</I>><i>
</I>><i> ipchains?
</I>><i>
</I>><i> Thanks in advance,
</I>><i>
</I>><i>
</I>
Signature · 5 lines
--Paul </PRE>
Arthur van Leeuwen [email protected]
<PRE>On Tue, 9 Jan 2001 <A HREF="mailto:[email protected]">[email protected]</A> wrote:
><i> Sorry for the off-topic question.
</I>><i>
</I>><i> I want to set the type of service (ToS) for all the traffic leaving my </I>><i> machine. All out going traffic.
</I>><i>
</I>><i> How can I do this?
</I>><i>
</I>><i> ipchains?
</I>
Or even ipfwadm, if you're still at 2.0. Something like
/sbin/ipchains -A output -t 0x01 0x10
will set the minimum delay flag on every outgoing packet.
See also the (quite excellent) IPchains HOWTO by Rusty Russell.
Note: the question isn't all that off-topic. The route-cache Linux uses is keyed on the triple <source address, destination address, type of service>. I've already encountered a situation in which I *had* to whack the TOS bits into submission in order to let connections be routed somewhat sanely.
Doei, Arthur. (And yes, that will end up in the FAQ, but not quite yet)
Signature · 7 lines
/\ / | <A HREF="mailto:[email protected]">[email protected]</A> | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there's nobody watching </PRE>
Arthur van Leeuwen [email protected]
<PRE>On Tue, 9 Jan 2001 <A HREF="mailto:[email protected]">[email protected]</A> wrote:
><i> Sorry for the silly question.
</I>
Now you're considering yourself silly for a very silly reason,
><i> I was missing CONFIG_IP_ROUTE_TOS in my </I>><i> kernel, and possibly another thing.
</I>
as the CONFIG_IP_ROUTE_TOS flag does *not* have anything to do with setting TOS flags, only with specifying routing policies keyed on TOS flags.
And yes, my previous remark that the route cache is keyed on the tripel <src, dst, tos> still holds, even if you *haven't* set the CONFIG_IP_ROUTE_TOS option on when compiling the kernel. If you don't believe me, just check the code for route_output() in net/ipv4/route.c in your favourite kernel source tree.
Doei, Arthur.
Signature · 7 lines
/\ / | <A HREF="mailto:[email protected]">[email protected]</A> | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there's nobody watching </PRE>