Blame extensions/libxt_LED.man

Packit 7b22a4
This creates an LED-trigger that can then be attached to system indicator
Packit 7b22a4
lights, to blink or illuminate them when certain packets pass through the
Packit 7b22a4
system. One example might be to light up an LED for a few minutes every time
Packit 7b22a4
an SSH connection is made to the local machine. The following options control
Packit 7b22a4
the trigger behavior:
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-led\-trigger\-id\fP \fIname\fP
Packit 7b22a4
This is the name given to the LED trigger. The actual name of the trigger
Packit 7b22a4
will be prefixed with "netfilter-".
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-led-delay\fP \fIms\fP
Packit 7b22a4
This indicates how long (in milliseconds) the LED should be left illuminated
Packit 7b22a4
when a packet arrives before being switched off again. The default is 0
Packit 7b22a4
(blink as fast as possible.) The special value \fIinf\fP can be given to
Packit 7b22a4
leave the LED on permanently once activated. (In this case the trigger will
Packit 7b22a4
need to be manually detached and reattached to the LED device to switch it
Packit 7b22a4
off again.)
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-led\-always\-blink\fP
Packit 7b22a4
Always make the LED blink on packet arrival, even if the LED is already on.
Packit 7b22a4
This allows notification of new packets even with long delay values (which
Packit 7b22a4
otherwise would result in a silent prolonging of the delay time.)
Packit 7b22a4
.TP
Packit 7b22a4
Example:
Packit 7b22a4
.TP
Packit 7b22a4
Create an LED trigger for incoming SSH traffic:
Packit 7b22a4
iptables \-A INPUT \-p tcp \-\-dport 22 \-j LED \-\-led\-trigger\-id ssh
Packit 7b22a4
.TP
Packit 7b22a4
Then attach the new trigger to an LED:
Packit 7b22a4
echo netfilter\-ssh >/sys/class/leds/\fIledname\fP/trigger