LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2011, 05:47 AM   #1
cjreyn
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Rep: Reputation: 0
Iptables MARK


Hi all,
What is the maximum value I can use for packet marking in iptables? Is the mark using a single byte, so a maximum of 255 values?

I'm wanting to do some per IP addr traffic shaping with tc, and it looks as though the only method is to mark packets with iptables, and then send them to a class dedicated to that mark/IP pair. I have less than 255 known IP addresses so a max mark value of 255 won't be a problem.

Cheers
 
Old 11-02-2011, 11:44 AM   #2
leslie_jones
Member
 
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
According to this:
http://andys.org.uk/bits/2010/01/27/...fun-with-mark/

It says:

"The MARK target lets us set a 32-bit value (or 0xFFFFFFFF) on a packet, which we can then look for later with the mark match. This in itself can be useful, but where it gets really handy is adding the values together."

But I've had trouble myself locating it in the official docs.

Hope that is some use.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables FORWARD mark problem m.mancio Linux - Networking 1 08-29-2011 07:11 PM
traffic shaping using tc and iptables fw mark jomen Linux - Networking 3 04-15-2010 07:14 AM
iptables MARK ImpactDNI Linux - Software 1 09-02-2006 02:40 PM
iptables mark combine with tc Kendo1979 Linux - Networking 2 11-15-2005 12:59 AM
iptables mark question paulos Linux - Networking 0 01-21-2004 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration