Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables precedence bits

Reply
Thread Tools Display Modes

iptables precedence bits

 
 
Tejas Kokje
Guest
Posts: n/a

 
      07-02-2004, 04:26 AM
Hi,

How to set precedence bits using iptables. I want to set TOS Bits to
0x20. How can I do this ? I don't find any mnemonics for this hex value.


Regards,
Tejas Kokje
 
Reply With Quote
 
 
 
 
Michael Meckelein
Guest
Posts: n/a

 
      07-02-2004, 08:03 AM

"Tejas Kokje" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Hi,
>
> How to set precedence bits using iptables. I want to set TOS Bits to
> 0x20. How can I do this ? I don't find any mnemonics for this hex value.


The syntax is:
-m tos --tos mnemonic [other-args] -j target

You can use iptables -m tos -h to see the list of allowed names.

Hope this help.

mm



 
Reply With Quote
 
Tejas Kokje
Guest
Posts: n/a

 
      07-02-2004, 08:07 AM
Yes,

But iptables only allows to set those 5 mnemonics. What if I want
to set one of the top three TOS bits of IP header. I mean out of 8
TOS bits i want to set third bit. i.e. 00100000. (priority bit).

I guess I will have to revert to good old ipchains

Regards,
Tejas Kokje
University of Southern California
Los Angeles

On Fri, 02 Jul 2004 10:03:10 +0200, Michael Meckelein wrote:

>
> "Tejas Kokje" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
>> Hi,
>>
>> How to set precedence bits using iptables. I want to set TOS Bits to
>> 0x20. How can I do this ? I don't find any mnemonics for this hex value.

>
> The syntax is:
> -m tos --tos mnemonic [other-args] -j target
>
> You can use iptables -m tos -h to see the list of allowed names.
>
> Hope this help.
>
> mm


 
Reply With Quote
 
Michael Meckelein
Guest
Posts: n/a

 
      07-02-2004, 08:51 AM

"Tejas Kokje" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Yes,
>
> But iptables only allows to set those 5 mnemonics. What if I want
> to set one of the top three TOS bits of IP header. I mean out of 8
> TOS bits i want to set third bit. i.e. 00100000. (priority bit).
>


I know I have read some time ago about bit manipulation. Maybe this tutorial
is interessting for you. But I am not sure if it fits to your requirements.
http://www.sans.org/rr/special/iptables_u32.pdf

mm


 
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
BIN Bits, Gain, SNR Geoff Lane Home Networking 3 11-13-2006 05:17 PM
Quick question of authentication precedence Brandon Morris Windows Networking 0 11-10-2005 06:45 PM
Host Name Search Precedence Fao, Sean Windows Networking 8 06-27-2005 05:54 PM
How many bits do I want for WPA? AFN Wireless Internet 9 03-03-2004 12:46 AM
How many bits = 64? CWatters Wireless Internet 11 09-27-2003 08:11 AM



1 2 3 4 5 6 7 8 9 10 11