All of lore.kernel.org
 help / color / mirror / Atom feed
* TOS problem
@ 2005-07-25 12:48 Marcin Giedz
  2005-07-25 14:25 ` Jörg Harmuth
  0 siblings, 1 reply; 8+ messages in thread
From: Marcin Giedz @ 2005-07-25 12:48 UTC (permalink / raw)
  To: netfilter

Hello

A few days ago I wrote post about "Ip:Port REDIRECTION problem". Since that 
time I have searched once again iptables HOW-TOs and find that one of the 
solutions for my problem is changing TOS to other value. This is done by 
simple rule:
iptables -t mangle -A PREROUTING -p tcp --dport 4000 -j TOS --set-tos 0x10
Next I redirect port 4000 from this router to another machine:
iptables -t nat -A PREROUTING -p tcp --dport 4000 -j DNAT 192.168.49.60:80

This works OK on router when this rule is being ran but when I dump (tcpdump) 
packtes on 192.168.49.60, "ToS" value is changed to 0x0. No any rules are 
being set on 192.168.49.60 - simple machine. Why "ToS" is changing? What do I 
wrong?

Thanks,
Marcin



^ permalink raw reply	[flat|nested] 8+ messages in thread
* TOS problem
@ 2003-03-05 12:56 nedco
  2003-03-05 13:55 ` Maciej Soltysiak
  0 siblings, 1 reply; 8+ messages in thread
From: nedco @ 2003-03-05 12:56 UTC (permalink / raw)
  To: netfilter




Hi,  
 
i like to set on myrouter TOS 0x0( Normal-Service ) to some packets 
but found that on some of packets can't set TOS 
in example  
 
then i ping 62.73.77.8 i get pakets with tos 0x10 and can't set to 0x0  
 
table mangle 
Chain FORWARD (policy ACCEPT 1242M packets, 469G bytes) 
 pkts bytes target     prot opt in     out     source               destination

 4589 1075K TOS        all  --  *      *       0.0.0.0/0            62.73.77.8
        TOS set 
0x00 
 4489  919K TOS        all  --  *      *       62.73.77.8           0.0.0.0/0
         TOS set 
0x00 
 
on tcpdump get  
02:36:44.898854 62.176.107.193 > 62.73.77.8: icmp: echo request 
02:36:44.956965 62.73.77.8 > 62.176.107.193: icmp: echo reply [tos 0x10] 
 
Am I doing something wrong? 
 
mandrake Linux version 2.4.19-16mdksmp, iptables v1.2.6a 
10x in advance 
Nedko 


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

end of thread, other threads:[~2005-07-26 15:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 12:48 TOS problem Marcin Giedz
2005-07-25 14:25 ` Jörg Harmuth
2005-07-26 10:58   ` Marcin Giedz
2005-07-26 12:49     ` Jörg Harmuth
2005-07-26 15:23       ` Marcin Giedz
  -- strict thread matches above, loose matches on Subject: below --
2003-03-05 12:56 nedco
2003-03-05 13:55 ` Maciej Soltysiak
2003-03-05 20:05   ` Nedko Nedev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.