From: "Adam" <netfilter@irotas.net>
To: netfilter-devel@lists.netfilter.org
Subject: Managing netfilter/iptables via netlink
Date: Wed, 03 Aug 2005 10:41:35 -0400 [thread overview]
Message-ID: <1123080095.30594.239892161@webmail.messagingengine.com> (raw)
Hi all,
I need a little clarification regarding Netfilter user-space to
kernel-space IPC.
I was reading the following article:
http://www.linuxjournal.com/article/7356
The author states: "NETLINK_NFLOG: communication channel for the
user-space iptable management tool and kernel-space Netfilter module."
However, looking into the iptables userspace code, it seems that it
sends directives to the kernel using setsockopt().
My question is this: Is it possible to manage netfilter/iptables from
userspace using netlink? If so, could you point me to some
documentation, or at least some example code? If not, is setsockopt()
currently the only supported mechanism to send firewall directives into
the kernel?
Currently my software uses system("/sbin/iptables ...") for configuring
the firewall, but unfortunately this is no longer an option.
Thanks,
Adam
next reply other threads:[~2005-08-03 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 14:41 Adam [this message]
2005-08-05 18:31 ` Managing netfilter/iptables via netlink Harald Welte
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=1123080095.30594.239892161@webmail.messagingengine.com \
--to=netfilter@irotas.net \
--cc=netfilter-devel@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 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.