Skip to contentSkip to conversation

TOS problem

DISCUSSION [email protected] 2 participants 3 messages Mar 5, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines

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?

tcpdump on a different machine, if you're tcpdumping on a the iptables machine tcpdump gets a copy of the packet, then it is mangled, so tcpdump won't show that.

Regards,
Maciej

#2 lore raw

You are right but strange result i see then i set tos 0x10 for boot directions
tcpdump i one direction eth1->eth1 show new tos but in eth0->eth1 not :)) and now i'm not absolute sure what

Quoted 1 line
Quoted 1 line

tcpdump gets a copy of the packet, then it is mangled

09:55:00.984707 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10] 09:55:00.993254 212.5.134.10.27015 > 212.5.150.58.27005: udp 176 09:55:01.035795 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10] 09:55:01.059674 212.5.134.10.27015 > 212.5.150.58.27005: udp 152 09:55:01.068017 212.5.150.58.27005 > 212.5.134.10.27015: udp 38 [tos 0x10] 09:55:01.113957 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10] 09:55:01.123299 212.5.134.10.27015 > 212.5.150.58.27005: udp 163 09:55:01.152040 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10] 09:55:01.190807 212.5.134.10.27015 > 212.5.150.58.27005: udp 148 09:55:01.193077 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10] 09:55:01.234989 212.5.150.58.27005 > 212.5.134.10.27015: udp 39 [tos 0x10]

Regards,
Nedko

----- Original Message -----
From: "Maciej Soltysiak" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, March 05, 2003 3:55 PM
Subject: Re: TOS problem

Quoted 17 lines
Quoted 8 lines

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?

tcpdump on a different machine, if you're tcpdumping on a the iptables machine tcpdump gets a copy of the packet, then it is mangled, so tcpdump won't show that.

Regards,
Maciej