Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: Re: iptables and TOS 15
@ 2004-11-15 11:35 tepesu
  2004-11-15 13:53 ` Jason Opperisano
  0 siblings, 1 reply; 2+ messages in thread
From: tepesu @ 2004-11-15 11:35 UTC (permalink / raw)
  To: Lopsch; +Cc: netfilter


    first i use imq patch for kernel 2.6.9 and htb for some traffic
management and i want to redirect this kind of trafic to imq1 or imq0 and
then to came with some htb rules. just this ...

#iptables -t mangle -A PREROUTING -m tos --tos 0x15 -j IMQ --todev 0
iptables v1.2.11: Bad TOS value `0x15'
Try `iptables -h' or 'iptables --help' for more information.

#iptables -t mangle -A PREROUTING -m tos --tos 15 -j IMQ --todev 0
iptables v1.2.11: Bad TOS value `15'
Try `iptables -h' or 'iptables --help' for more information.



>
>Please post it also to the list so more people can help ;). Only for
>understanding: Your ISP marks some pakets with TOS 15, what exactly do
>you want to do, only filter them out or mark them with any kind of
>number so that the traffic shaper uses it? For further questions about
>shaping etc. refer to www.lartc.org howto an their mailinglist perhaps
>there waits better help for such questions.
>
>as Jason wrote you could use a rule like this:
>
>iptables -t mangle -A PREROUTING -m tos --tos 15 [ ... ]
>
>the  value is also accepted as hex
>
>iptables -t mangle -A PREROUTING -m tos --tos 0x15 [ ... ]
>
>where [...] means that´s then up to you what action you perform on that>
>pakets.
>iptables -t mangle -A PREROUTING -m tos --tos 15 -j DROP
>for example would drop all TOS 15 pakets.
>iptables -t mangle -A PREROUTING -m tos --tos 15 -j MARK --mark n
>would mark all TOS 15 pakets with the value n for further use for
>example traffic shaping.
>
>





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: iptables and TOS 15
  2004-11-15 11:35 Re: iptables and TOS 15 tepesu
@ 2004-11-15 13:53 ` Jason Opperisano
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2004-11-15 13:53 UTC (permalink / raw)
  To: netfilter

On Mon, 2004-11-15 at 06:35, tepesu@australia.edu wrote:
>     first i use imq patch for kernel 2.6.9 and htb for some traffic
> management and i want to redirect this kind of trafic to imq1 or imq0 and
> then to came with some htb rules. just this ...
> 
> #iptables -t mangle -A PREROUTING -m tos --tos 0x15 -j IMQ --todev 0
> iptables v1.2.11: Bad TOS value `0x15'
> Try `iptables -h' or 'iptables --help' for more information.
> 
> #iptables -t mangle -A PREROUTING -m tos --tos 15 -j IMQ --todev 0
> iptables v1.2.11: Bad TOS value `15'
> Try `iptables -h' or 'iptables --help' for more information.

the problem is that "15" is not a valid TOS value as far as iptables is
concerned.  your choices are:

  Minimize-Delay 16 (0x10)
  Maximize-Throughput 8 (0x08)
  Maximize-Reliability 4 (0x04)
  Minimize-Cost 2 (0x02)
  Normal-Service 0 (0x00)

a previous poster said that your ISP's value of 15 is most likely
equivalent to 0.

-j

--
"I am so smart, I am so smart, s-m-r-t....I mean s-m-A-r-t."
	--The Simpsons



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-15 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15 11:35 Re: iptables and TOS 15 tepesu
2004-11-15 13:53 ` Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox