[SunHELP] Tcp_wrappers: emailing info from refused attempt

Dicu Silviu sunhelp at sunhelp.org
Mon Oct 1 09:11:08 CDT 2001


here is what i have an works perfect ( my example is put into
hosts.allow at the  END of file, you can use hosts.deny if you have a
lot of hosts to allow )

ALL             :       ALL             :      
spawn(/opt/sbin/safe_finger -l @%h | /bin/mail -s 'subject'
admin at yahoo.com) : deny




--- Mack Lundy <malund at wm.edu> wrote:
> I've checked the FAQs I can find and posted the questiion a couple
> of
> other places with no succes so far.
> 
> OS:  SOL7 & SOL8
> Tcp wrapper versions: 7.6 and 7.6-ipv6
> 
> I've been reading about the booby traps you can set with
> tcp_wrappers
> and am interested in what you can do in the hosts.deny file.  I
> found a
> couple of examples of ways to email information about attempts to
> telnet
> in that are refused.
> 
> e.g.
> in.telnetd: ALL: (/usr/local/sbin/save_finger -l @%h |
> /usr/ucb/mail -s
> %d-%h root) &
> 
> Also
> 
> SPAWN (/usr/local/sbin/safe_finger -l @%h | /usr/ucb/mail -s %d-%h
> root)
> &
> 
> Neither of these sends email to root.  The path is where
> safe_finger is
> located on my systems.  Both version of tcp_wrappers were compiled
> with
> SYTLE=-DPROCESS_OPTIONS
> 
> Any ideas what I'm doing wrong?
> 
> Thanks
> 
> Mack
> -----
> Mack Lundy
> Systems Librarian
> College of William & Mary, Swem Library
> voice:  757.221.3114
> email:  malund at wm.edu
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp


=====
Silviu Dicu

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com



More information about the SunHELP mailing list