Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPTABLES: TOS setting problems

Reply
Thread Tools Display Modes

IPTABLES: TOS setting problems

 
 
craig
Guest
Posts: n/a

 
      10-05-2004, 09:46 AM
Hi folks,

I'm trying to get my linux router to set tos bits for Minimize Delay
(0x10) on packets for telnet. I've set this up but it doesn't work ! I
can see this using Ethereal.

According to the iptables counters, the packets are being matched OK -
the tos bits just aren't set. To rule out the possibility of other
aspects of my iptables mucking things up, I have tried a very basic
setup as follows:


#/etc/sysconfig/iptables

*mangle
:PREROUTING ACCEPT [0:0]
-A PREROUTING -p tcp --dport 23 -j TOS --set-tos 0x10
:OUTPUT ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
COMMIT

*filter
:OUTPUT ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
COMMIT

I can see that packets for telnet are being matched OK using:

iptables -L -v -n -t mangle

but the differentiated services field is still 0x00 when I capture
packets in Ethereal !!

I don't understand, but I hope I am just missing something silly.
Please help me ;-)

TIA

Craig Jackson
 
Reply With Quote
 
 
 
 
craig
Guest
Posts: n/a

 
      10-05-2004, 03:23 PM
(E-Mail Removed) (craig) wrote in message news:<(E-Mail Removed). com>...
> Hi folks,
>
> I'm trying to get my linux router to set tos bits for Minimize Delay
> (0x10) on packets for telnet. I've set this up but it doesn't work ! I
> can see this using Ethereal.
>
> According to the iptables counters, the packets are being matched OK -
> the tos bits just aren't set. To rule out the possibility of other
> aspects of my iptables mucking things up, I have tried a very basic
> setup as follows:
>
>
> #/etc/sysconfig/iptables
>
> *mangle
> :PREROUTING ACCEPT [0:0]
> -A PREROUTING -p tcp --dport 23 -j TOS --set-tos 0x10
> :OUTPUT ACCEPT [0:0]
> :INPUT ACCEPT [0:0]
> :FORWARD ACCEPT [0:0]
> COMMIT
>
> *filter
> :OUTPUT ACCEPT [0:0]
> :INPUT ACCEPT [0:0]
> :FORWARD ACCEPT [0:0]
> COMMIT
>
> I can see that packets for telnet are being matched OK using:
>
> iptables -L -v -n -t mangle
>
> but the differentiated services field is still 0x00 when I capture
> packets in Ethereal !!
>
> I don't understand, but I hope I am just missing something silly.
> Please help me ;-)
>
> TIA
>
> Craig Jackson


DOh! I was looking at the traffic on the LAN with ethereal, instead of
looking at the traffic after the router !! The TOS bits are being set
fine.

One born every day....

Craig
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables DNS problems Vampyre Linux Networking 7 01-23-2006 12:26 PM
Problem setting up ftp server inside lan (iptables) Sam Linux Networking 1 08-16-2004 09:26 PM
Problems with setting up Iptables Frank Rosario Linux Networking 0 11-14-2003 02:45 PM
Trouble while setting iptables Arsenio Lupin Linux Networking 1 11-14-2003 08:34 AM
iptables rule problems Kauna Linux Networking 1 10-14-2003 01:39 PM



1 2 3 4 5 6 7 8 9 10 11