It turns out that it seems very easy to do.
eg.
in.telnetd 192.168.0.2 :\
spawn (echo %a %c %d %d %n %p %s %u $(date) > /tmp/tcpd;\
kill -15 %p): ALLOW
This entry from my hosts.allow file just saves all the data tcpd collects,
then kills the tcpd daemon, and the ALLOW condition is never acted upon.
Now, to figure what conditions to put into my hosts.allow file!
Joel
On Sat, Sep 22, 2001 at 10:13:00AM -0400, Joel Hammer wrote:
> I use tcpwrappers in offering telnet services. I use ipchains, not iptables.
> I would like to spawn a bash script in my hosts.allow file to check
> certain conditions on the host computer (time of day, for example) before accepting
> the connection. I see how to spawn bash scripts, but I can find no where how
> tcpwrappers allows the bash script to decide whether or not to accept the
> connection.
> Any insight appreciated.
> Joel
>
> _______________________________________________
> http://linux.nf -- [EMAIL PROTECTED]
> Archives, Subscribe, Unsubscribe, Digest, Etc
>->http://linux.nf/mailman/listinfo/linux-users
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc
->http://linux.nf/mailman/listinfo/linux-users