[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] disconnect events



You might be able to implement this with some sort of 'port knocking'.
The concept is to send a sequence of tcp/udp packets to a machine that
has some daemon running that listens for those packets (even on blocked
and closed ports).  When it identifies some pre-determined pattern, it
can be configured to run a series of system commands.  It is usually
used to manipulate iptables rules to temporarily allow tcp syn packets
from the IP that successfully knocked.

See http://linux.die.net/man/1/knockd for a couple examples

Thanks,
Brandon Checketts


Atlanta Geek wrote:
> I am using iptables to do port forwarding. Is it possible to trigger a
> script on a disconnect from one of the ports being fowarded.
> Thanks
> -Tommie
>