From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Subject: Re: any Api to program with iptables without system(...) Date: Wed, 19 Oct 2005 19:30:42 +0200 Message-ID: <435682C2.1000504@eurodev.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: iAc In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org iAc wrote: > I have to develop a program that interface with Iptables but for security > reason I'm canno use system call System(iptables command). > I have try to find out a better way but I didn't find nothing. > Someone there can show me how can I interact with iptables withou system > call "System etc. etc." ?? No, the iptables API is not documented. This is one of the current flaws that still persist in iptables. The safest way to work with iptables is using system(...)