From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg_Harmuth?= Subject: Re: TOS problem Date: Mon, 25 Jul 2005 16:25:40 +0200 Message-ID: <42E4F664.70801@mnemon.de> References: <200507251448.41773.marcin.giedz@eulerhermes.pl> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200507251448.41773.marcin.giedz@eulerhermes.pl> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Marcin Giedz schrieb: > 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? Your providing too little information, so nobody can help you - even if he/she desired to do so. Hmm, iptables isn't known for unreliability. Did you tcpdump on the routers outgoing interface ? What about TOS there ? I read your previous posting again, and your problem seems to be routing or iptables (not really sure). Why do you think that setting TOS to "Minimize-Delay" could help to solve your problems ? Have a nice time, Joerg