All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justin Schoeman <justin@expertron.co.za>
To: Erik Alberti <erik.alberti@gmx.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: "beep" on match
Date: Tue, 07 Nov 2006 08:51:50 +0200	[thread overview]
Message-ID: <45502D05.1050807@expertron.co.za> (raw)
In-Reply-To: <454FB587.9010806@gmx.de>

I doubt you will ever be able to do that directly, but it should be no 
problem to make a simple application using lipipulog, and

iptables ... -j ULOG

So the iptables match sends the packet to the userspace logging daemon, 
which then does the 'beep'.  Could even use the --ulog-prefix option to 
specify the text of the command to execute...

-justin

Erik Alberti wrote:
> Hallo!
> 
> Ich suche nach einer Möglichkeit ein externes Programm bei einem match
> einer Regel auszuführen. Beispiel:
> 
>   iptables ... -j exec("/usr/bin/beep -f 5000 -l 1000")
> 
> ------------------------------------------------------------------------
> 
> Hello!
> 
> I am looking for a possibility of executing an external program in the
> field of a match of a rule. Example:
> 
>   iptables ... -j exec("/usr/bin/beep -f 5000 -l 1000")
> 
> 
> Erik
> 



  reply	other threads:[~2006-11-07  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06 22:21 "beep" on match Erik Alberti
2006-11-07  6:51 ` Justin Schoeman [this message]
2006-11-07 16:07   ` Arnt Karlsen

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=45502D05.1050807@expertron.co.za \
    --to=justin@expertron.co.za \
    --cc=erik.alberti@gmx.de \
    --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 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.