* "beep" on match
@ 2006-11-06 22:21 Erik Alberti
2006-11-07 6:51 ` Justin Schoeman
0 siblings, 1 reply; 3+ messages in thread
From: Erik Alberti @ 2006-11-06 22:21 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "beep" on match
2006-11-06 22:21 "beep" on match Erik Alberti
@ 2006-11-07 6:51 ` Justin Schoeman
2006-11-07 16:07 ` Arnt Karlsen
0 siblings, 1 reply; 3+ messages in thread
From: Justin Schoeman @ 2006-11-07 6:51 UTC (permalink / raw)
To: Erik Alberti; +Cc: netfilter
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "beep" on match
2006-11-07 6:51 ` Justin Schoeman
@ 2006-11-07 16:07 ` Arnt Karlsen
0 siblings, 0 replies; 3+ messages in thread
From: Arnt Karlsen @ 2006-11-07 16:07 UTC (permalink / raw)
To: netfilter
On Tue, 07 Nov 2006 08:51:50 +0200, Justin wrote in message
<45502D05.1050807@expertron.co.za>:
> 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")
>
> 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...
>
..schrägemusik enthusiasts might even wanna try chop up
conntrack data to feed beep's -f 'n -l...<shudder/>
--
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-07 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 22:21 "beep" on match Erik Alberti
2006-11-07 6:51 ` Justin Schoeman
2006-11-07 16:07 ` Arnt Karlsen
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.