Adding shell commands to hosts.deny and hosts.allow
I'm running Debian Woody, but I can't seem to find documentation about running shell commands from within hosts.deny (and hosts.allow). Currently, I have the standard deny file...
/etc/hosts.deny
ALL : ALL
I want to add logging, but I'm getting errors...
ALL : ALL : (/bin/echo "$(/bin/date) %H TCPW: %d" >> /var/log/secure)
bad option name: "(/bin/echo"
ALL : ALL : spawn(/bin/echo "$(/bin/date) %H TCPW: %d" >> /var/log/secure)
bad option name: "spawn(/bin/echo"
Any help on the syntax? Thanks in advance!
|