All of lore.kernel.org
 help / color / mirror / Atom feed
From: tobi <tobster@brain-force.ch>
To: netfilter@vger.kernel.org
Subject: Run a userspace script upon rule matching?
Date: Thu, 08 Mar 2012 13:45:56 +0100	[thread overview]
Message-ID: <4F58AA04.4010805@brain-force.ch> (raw)

Hello list

my first post here so I hope I do not ask something which is so clear
that I doesn't have to be asked ;-)
As mentioned in subject I want to run an external script upon matching
of a certain rule. but I have no idea how or even if it's possible at
all. I could achieve the "same" by loging those rules to the syslog and
regularly running a cron script that checks for those loglines. But it
would be much easier if I could tell netfilter to call an external
script upon matching.

thanks for any hints and tipps

tobi

             reply	other threads:[~2012-03-08 12:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 12:45 tobi [this message]
2012-03-08 17:19 ` Run a userspace script upon rule matching? Andrew Beverley
2012-03-08 18:00   ` Abhi Devireddy
2012-03-08 21:47   ` tobi
2012-03-08 22:02     ` Andrew Beverley
2012-03-08 22:43       ` tobi

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=4F58AA04.4010805@brain-force.ch \
    --to=tobster@brain-force.ch \
    --cc=netfilter@vger.kernel.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.