LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   set the tos (https://www.linuxquestions.org/questions/linux-networking-3/set-the-tos-283299/)

alaios 01-28-2005 09:25 AM

set the tos
 
Hi...
I need to set the tos field in the packets coming from the ip address 10.0.0.4.
I have tried the iptables but i can;t define whatever tos field i want...
Any suggestion?

peter_robb 01-28-2005 12:30 PM

do iptables -j TOS -h to list the values.. decimal & hex..

eg, iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 22 -j TOS --set-tos 16

alaios 01-29-2005 01:37 PM

thx for your answer but if i want to use more tos fields other than the defaults??

TOS target v1.2.8 options:
--set-tos value Set Type of Service field to one of the
following numeric or descriptive values:
Minimize-Delay 16 (0x10)
Maximize-Throughput 8 (0x08)
Maximize-Reliability 4 (0x04)
Minimize-Cost 2 (0x02)
Normal-Service 0 (0x00)

peter_robb 01-29-2005 02:05 PM

There's an FTOS patch available to modify the TOS setup..

http://iptables-tutorial.frozentux.n...html#TOSTARGET

alaios 02-08-2005 06:04 AM

Have u ever tried installing it? I have some information to ask


All times are GMT -5. The time now is 09:32 AM.