Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Asghar <asghar@innomedia.soft.net>
To: netfilter@lists.netfilter.org
Subject: Inserting NATing rules through C programmes...
Date: Tue, 04 Jan 2005 11:02:30 +0530	[thread overview]
Message-ID: <41DA2A6E.3050306@innomedia.soft.net> (raw)

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



                 reply	other threads:[~2005-01-04  5:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41DA2A6E.3050306@innomedia.soft.net \
    --to=asghar@innomedia.soft.net \
    --cc=netfilter@lists.netfilter.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