From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asghar Subject: Inserting NATing rules through C programmes... Date: Tue, 04 Jan 2005 11:02:30 +0530 Message-ID: <41DA2A6E.3050306@innomedia.soft.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Hi, all Can any body tell me how to insert IP table NATing rules through C programmes with out using system () call. I am getting some problem with system( ). I have read somewhere that "We are well aware that there is a fundamental lack for such an API, and we are working on improving that situation. Until then, it is recommended to either use system() or *open a pipe into stdin of iptables-restore*. The latter will give you a way better performance." Can any body tell me from where i can get the details about the second option.. Regards Asghar