netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* add packet filter rule from within kernel module
@ 2011-10-29 14:23 Rieker Flaik
  0 siblings, 0 replies; only message in thread
From: Rieker Flaik @ 2011-10-29 14:23 UTC (permalink / raw)
  To: netfilter-devel

Hi,

 I have "homebrewed" a small usb-device with LEDs, a button and its
kernel-module. It is just for me and my educational purpose.

What I would like to achieve:

 If button is triggered: The "kernel-netfilter-equivalent"
of 'iptables -A INPUT -p tcp -j DROP' should get called from within the
kernel by my module.

So that there would be no need for a detour to userspace by e.g the
input system which feeds an input-daemon which then would call some
iptables control script.

Could you please give me a hint in the right direction which function I
could use, should use or should not use? Some docu, example or similar
module would be certainly great too :)


Thanks,
 Rik


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-29 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29 14:23 add packet filter rule from within kernel module Rieker Flaik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).