On Wed, 27 Mar 2002, Sergeev Sergey wrote: > Hello netfilter, > > sorry for my english :) > > in Iptables Tutorial 1.1.9 by Oskar Andreasson wroted: > > "The --set-tos option tells the TOS mangler what TOS value to set on > packets that are matched. The option takes a numeric value, either in hex or in >decimal value. > As the TOS value consists of 8 bits, the value may be 0-255, or in hex 0x00-0xFF"
The TOS match/mangle will only set the values predefined in linux/ip.h If you want to mangle TOS field to all values then you need to use FTOS - patches to enable this for 2.4.1[7,8] and iptables 1.2.[5,6] are available: http://www.paksecured.com/patches/ HTH. > but when I trying to set 0x20 : > "# iptables -A PREROUTING -t mangle -i eth0 -j TOS --set-tos 0x20" > I recieve: > "# iptables v1.2.5: Bad TOS value `0x20`" > > Can I & how can I use all 0-0xFF range of TOS values for my purpose? > > thank You! > -- > Best regards, > Sergeev mailto:[EMAIL PROTECTED] -------------------------------------------------- Matthew G. Marsh, President Paktronix Systems LLC 1506 North 59th Street Omaha NE 68104 Phone: (402) 932-7250 x101 Email: [EMAIL PROTECTED] WWW: http://www.paktronix.com --------------------------------------------------
