You are not logged in.

#1 2007-02-22 19:14:52

T0MAS
Member
Registered: 2007-02-22
Posts: 12

TCP_Wrapper hosts.{allow,deny} command spawn help

Hi people I was trying to spawn a command from my /etc/hosts.allow and /etc/hosts.deny, let's say I've got somebody denied I want the event to be logged or somebody's ip checked with a black ip list etc.

What syntax should I use for arch? I was trying to simply write:

sshd:ALL:spawn python /usr/bin/denyhosts.py --purge -c /etc/denyhosts.cfg: allow

didn't work... tried this

sshd:ALL:spawn(python /usr/bin/denyhosts.py --purge -c /etc/denyhosts.cfg): allow

and this

sshd:ALL:spawn= python /usr/bin/denyhosts.py --purge -c /etc/denyhosts.cfg: allow

Tried updating TCP_Wrapper package which was up to date still no luck, I found somebody suggested using something like this: (ref: http://bbs.archlinux.org/viewtopic.php?id=456 )

# 
# /etc/hosts.deny 
#
ALL: ALL: DENY spawn (/usr/bin/logger "%d[%p]: %c tried to get in.")

...no joy
Also is libwrap part of the package and if it's required to have the spawn functionality?
I couldn't get twist to work either...

Last edited by T0MAS (2007-02-22 19:17:16)

Offline

Board footer

Powered by FluxBB