Skip to contentSkip to conversation

"beep" on match

DISCUSSION Erik Alberti 3 participants 3 messages Nov 6, 2006 – Nov 7, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 19 lines · Erik Alberti

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

#2 lore raw

On Tue, 07 Nov 2006 08:51:50 +0200, Justin wrote in message <[email protected]>:

Quoted 18 lines
Quoted 10 lines · Erik Alberti

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")

-------------------------------------------------------------------
-----

Quoted 6 lines

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")

Quoted 9 lines

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/>

Signature · 4 lines
..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.