cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean-Tiare LE BIGOT <jean-tiare.le-bigot-SavXxUIaH7I@public.gmane.org>
To: Rami Rosen <roszenrami-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: using cgroups' classif with iptables
Date: Fri, 21 Mar 2014 10:27:14 +0100	[thread overview]
Message-ID: <532C05F2.2070308@ovh.net> (raw)
In-Reply-To: <CAKoUArkS2mBZkFULqvvHEUEt6btcAAmV-+oWBk2KbNxrnt-s8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Rami,

Thanks for your hint. Looking in this direction I found 
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/net/netfilter/xt_cgroup.c?id=82a37132f300ea53bdcd812917af5a6329ec80c3 
which includes netfilter side of cgroup filtering in... 3.14. I'll 
backport it.

Regards,

On 03/21/2014 10:10 AM, Rami Rosen wrote:
>
> Hi, Jean,
>
> You should look at t the Control Group Classifier module:
> http://lxr.free-electrons.com/source/net/sched/cls_cgroup.c
>
> Best regards,
> Rami Rosen
> http://ramirose.wix.com/ramirosen
>
>
> On Thu, Mar 20, 2014 at 7:28 PM, Jean-Tiare LE BIGOT
> <jean-tiare.le-bigot-SavXxUIaH7I@public.gmane.org> wrote:
>> Hi,
>>
>> In https://www.kernel.org/doc/Documentation/cgroups/net_cls.txt there is a
>> example to match the classid, set with a cgroup, with iptables:
>>          iptables -A OUTPUT -m cgroup ! --cgroup 0x100001 -j DROP
>>
>> However, I've not been able to find the corresponding kernel module neither
>> the iptables side module...
>>
>> Do you have any hint where I could find it ?
>>
>> Thanks,
>>
>> --
>> Jean-Tiare, shared-hosting team
>> --
>> To unsubscribe from this list: send the line "unsubscribe cgroups" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe cgroups" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
Jean-Tiare, shared-hosting team

      parent reply	other threads:[~2014-03-21  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 17:28 using cgroups' classif with iptables Jean-Tiare LE BIGOT
     [not found] ` <532B252F.80302-SavXxUIaH7I@public.gmane.org>
2014-03-21  9:10   ` Rami Rosen
     [not found]     ` <CAKoUArkS2mBZkFULqvvHEUEt6btcAAmV-+oWBk2KbNxrnt-s8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-21  9:27       ` Jean-Tiare LE BIGOT [this message]

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=532C05F2.2070308@ovh.net \
    --to=jean-tiare.le-bigot-savxxuiah7i@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roszenrami-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).