All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vigneswaran R <vignesh@atc.tcs.com>
To: Ajith Adapa <adapa.ajith@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Regarding updating netfilter rules from kernel space
Date: Thu, 08 Dec 2011 14:56:57 +0530	[thread overview]
Message-ID: <4EE082E1.9000600@atc.tcs.com> (raw)
In-Reply-To: <CADAe=+KR0vsg8kULz3EuDWQVwZ+ojhAhOyaMV8bARBSMQ-Jhug@mail.gmail.com>

On Friday 02 December 2011 09:45 AM, Ajith Adapa wrote:
> Hi,
>
> I want to update "RULES" in netfilter from a kernel module similar to
> iptables doing the same update from user space.

I don't know whether netfilter exhibits any APIs for the other modules 
to do that.

However, I could think of a work around using "call_usermodehelper()". 
You can execute a userspace program (say, iptables) using this function 
from kernel space.

Regards,
Vignesh

>
> Is there any references or docs to above scenario which can help me out ?
>
> Regards,
> Ajith
> --
> 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
>


      reply	other threads:[~2011-12-08  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02  4:15 Regarding updating netfilter rules from kernel space Ajith Adapa
2011-12-08  9:26 ` Vigneswaran R [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=4EE082E1.9000600@atc.tcs.com \
    --to=vignesh@atc.tcs.com \
    --cc=adapa.ajith@gmail.com \
    --cc=netfilter@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.