Steve Murphy
2014-07-31 06:18:10 UTC
I'm writing a network app to mimic the OSSEC
active response feature across multiple hosts,
but without the OSSEC machinery behind it, and
without the per-agent registration.
At any rate, it would be nice if I could execute
an external script from psad, when a block is
inserted in iptables. And it would be nice if the
script were run ONLY when a block was added.
I see the config directives:
ENABLE_EXT_SCRIPT_EXEC
EXTERNAL_SCRIPT
EXEC_EXT_SCRIPT_PER_ALERT
and I see that EXTERNAL_SCRIPT replaces SRCIP in the
command string. Too bad DANGERLEVEL isn't also substituted.
There might even be a few more that might be nice to have...
I also see that I get psad-status emails when an IP is banned;
psad-alert messages can come out several times before being banned...
What would you advise me to do, to get the effect I seek from psad? One
execution of the external script only when an IP is entered into iptables...
murf
active response feature across multiple hosts,
but without the OSSEC machinery behind it, and
without the per-agent registration.
At any rate, it would be nice if I could execute
an external script from psad, when a block is
inserted in iptables. And it would be nice if the
script were run ONLY when a block was added.
I see the config directives:
ENABLE_EXT_SCRIPT_EXEC
EXTERNAL_SCRIPT
EXEC_EXT_SCRIPT_PER_ALERT
and I see that EXTERNAL_SCRIPT replaces SRCIP in the
command string. Too bad DANGERLEVEL isn't also substituted.
There might even be a few more that might be nice to have...
I also see that I get psad-status emails when an IP is banned;
psad-alert messages can come out several times before being banned...
What would you advise me to do, to get the effect I seek from psad? One
execution of the external script only when an IP is entered into iptables...
murf
--
Steve Murphy
ParseTree Corporation
57 Lane 17
Cody, WY 82414
â murf at parsetree dot com
â 307-899-5535
Steve Murphy
ParseTree Corporation
57 Lane 17
Cody, WY 82414
â murf at parsetree dot com
â 307-899-5535