Linux Netfilter discussions
 help / color / mirror / Atom feed
* Controlling an iptables-match from userspace
@ 2006-05-23 11:42 Manfred Stock
  2006-05-23 12:04 ` Sven-Haegar Koch
  0 siblings, 1 reply; 9+ messages in thread
From: Manfred Stock @ 2006-05-23 11:42 UTC (permalink / raw)
  To: netfilter

Hi,

I'm looking for a way to control an iptables-match from a
c/c++-program. My goal is to
have a simple match-module which can be told from userspace to either
return 0 or 1
in it's match-function (this would be useful for dynamically turning
on/off several more
complicated rules without inserting/removing them from the ip tables,
i.e. without
using libiptc (for which I haven't found an easy way on how to use it
anyways...) or
iptables itself).

The netfilter Hacking HOWTO mentions nf_register_sockopt for such
tasks (receiving
commands from userspace) - is this still the way to go, or is it going
to be removed
in the (not so far) future (eg. in favor of netlink)? Another way
would be the use of
sysfs, but it seems to be more for device drivers than this; configfs
is still relatively
new and probably not available for older kernels... Or is there even a
simpler way to do
such a thing? Any ideas/hints?



Best regards,

Manfred.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-30  7:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-23 11:42 Controlling an iptables-match from userspace Manfred Stock
2006-05-23 12:04 ` Sven-Haegar Koch
2006-05-23 15:00   ` Manfred Stock
2006-05-25 22:00     ` Massimiliano Hofer
2006-05-26  2:17       ` STRING agrument Allan Parreno
2006-05-27  2:49         ` Eric Benton
2006-05-28 18:19       ` Controlling an iptables-match from userspace Manfred Stock
2006-05-28 23:36         ` Massimiliano Hofer
2006-05-30  7:36           ` Manfred Stock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox