[prev in list] [next in list] [prev in thread] [next in thread]
List: netfilter
Subject: Re: --and-mark while matching?
From: Ambroz Bizjak <ambrop7 () gmail ! com>
Date: 2013-02-12 12:25:00
Message-ID: CAOA3yKJiV6nd-pP8bJSRyGAxA09re5z7HOp6SSsxVgJfRN7-ow () mail ! gmail ! com
[Download RAW message or body]
iptables -I INPUT -m mark --mark 0x20/0x20 -j REJECT
See the description of the mark match. If you specify "-m mark --mark
A/B", the mark is first and'ed with B and then the result is checked
for equality to A.
On Tue, Feb 12, 2013 at 10:47 AM, Aaron Lewis
<the.warl0ck.1989@gmail.com> wrote:
> Hi,
>
> Looks like the mark module doesn't support "and" matching mechanism,
>
> iptables -I INPUT -m mark --and-mark 0x20 -j REJECT
>
> I want to match the packet when the mark has all bit of 0x20 set,
> possible?
>
> --
> Best Regards,
> Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
> Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic