On Wed, Feb 27, 2002 at 06:19:12PM +0000, Robert Collier wrote:

> I'm using a PRIO qdisc to difeferntiat traffic based on TOS header of
> packets.
> 
> Works perfectly when application sets TOS (eg ssh/scp).
> 
> Works perfectly if I set TOS from PREROUTING chain in mangle table.
> 
> Does not work if I set TOS from FORWARD, OUTPUT or POSTROUTING chain
> in mangle table.

Do you mean that you set the TOS value in these chains on the same
machine? If so:

1) FORWARD doesn't work because it is after the routing decision.
2) OUTPUT (I don't know) OUTPUT in nat doesn't work either, so...
3) POSTROUTING doesn't work because it is after the routing decision.

Ramin

> 
> When I say does-not-work I mean that traffic of that type is not
> directed to the SFQ qdisc I have allocated for bulk traffic after
> being marked with:
> 
> iptables -t mangle -N tosbulk
> iptables -t mangle -A tosbulk -j TOS --set-tos Maximize-Throughput
> iptables -t mangle -A tosbulk -j ACCEPT
> 
> iptables -t mangle -N settos
> iptables -t mangle -A settos -p TCP --sport 80 -j tosbulk
> 
> iptables -t mangle -F OUTPUT
> iptables -t mangle -A OUTPUT -j settos
> 
> Any idea how to fix? 
> 
>       - Rob.
> 
> -- 
> Robert Collier
> [EMAIL PROTECTED]

Reply via email to