From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: combining 'fw' and 'u32' classfier?
Date: Tue, 11 Aug 2015 09:31:49 +0000 [thread overview]
Message-ID: <55C9C105.80502@gmail.com> (raw)
In-Reply-To: <CAA5aLPguTr9wKhykyrjYfhPRd_sV2bByLEXn8z3HDtt-yBQWUA@mail.gmail.com>
Akshat Kakkar wrote:
> IS there a possibility to combine 'fw' classifier and 'u32'
> classifier to frame rule like if fw mark is 100 and destination is
> 8.8.8.8 then do rate limiting by flow id 1:1.
Use u32 match mark.
You can do quite complex stuff with the mark match eg. you can work in
hex in both iptables and u32 match (by putting 0x before the marks).
This allows you to use bitwise commands like or in iptables to modify
sections of marks that have already been set elsewhere and later in tc
use masks to look at different bits of a mark.
next prev parent reply other threads:[~2015-08-11 9:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 13:39 combining 'fw' and 'u32' classfier? Akshat Kakkar
2015-08-11 8:35 ` Vitaly Repin
2015-08-11 9:31 ` Andy Furniss [this message]
2015-08-11 12:14 ` Akshat Kakkar
2015-08-11 12:14 ` Akshat Kakkar
2015-08-11 14:33 ` Andy Furniss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C9C105.80502@gmail.com \
--to=adf.lists@gmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.