From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vigneswaran R Subject: Re: Regarding updating netfilter rules from kernel space Date: Thu, 08 Dec 2011 14:56:57 +0530 Message-ID: <4EE082E1.9000600@atc.tcs.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Ajith Adapa Cc: netfilter@vger.kernel.org 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 >