From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98589915507075.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Thu, 29 Mar 2001 20:52:09 +0000 To: tru64-unix-managers Subject: tcp wrapper & external program for allow/deny X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98589915507075 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C0B892.20199830" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0B892.20199830 Content-Type: text/plain; charset="iso-8859-1" We currently have tcp wrappers running on our system, and is functioning fine. I didn't see anyway for this in the docs, but... can tcp_wrappers be setup so that a script can allow/deny a connection? What I want to do is allow a connection from an IP, but only between certain hours (I'd rather not put this in the .login script, since it would affect all users from this IP, and only when loggin in via telnet - (ie. LAT connection can be anytime - it's a local connection) Where timeok is a script/and or PERL routine that will determine if the login time is ok. Is it possible for the script to set a varible or flag so that tcp_wrapper will not allow the connection? /etc/hosts.allow entry telnetd: 10.10.1.1 : (/usr/local/timeok) Thanks George George Gallen Senior Programmer/Analyst Accounting/Data Division ggallen@slackinc.com ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com ------_=_NextPart_001_01C0B892.20199830 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable tcp wrapper & external program for allow/deny

We currently have tcp wrappers running = on our system, and is functioning fine.

I didn't see anyway for this in the = docs, but... can tcp_wrappers be setup so that
a script can allow/deny a = connection?

What I want to do is allow a = connection from an IP, but only between certain hours
(I'd rather not put this in the = .login script, since it would affect all users from this IP,
and only  when loggin in via = telnet - (ie. LAT connection can be anytime - it's a local
connection)

Where timeok is a script/and or PERL = routine that will determine if the login time is
ok. Is it possible for the script to = set a varible or flag so that tcp_wrapper will not
allow the connection?

/etc/hosts.allow entry

telnetd: 10.10.1.1 : = (/usr/local/timeok)

Thanks
George

George = Gallen
Senior = Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220

SLACK = Incorporated - An innovative information, education and management = company
http://www.slackinc.com

------_=_NextPart_001_01C0B892.20199830--