From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b33cb1f80cf8a03a X-Google-Attributes: gid1164f8,public From: Grzegorz Cholewiak Subject: Re: How to lock down rsh in Unix 4.0D? Date: 2000/04/28 Message-ID: <3909DDC5.BE33D52F@if.uj.edu.pl>#1/1 X-Deja-AN: 616891605 Content-Transfer-Encoding: 7bit References: <3905FB8E.6D5B3EAE@americasm01.nt.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@cyf-kr.edu.pl X-Trace: info.cyf-kr.edu.pl 956947910 14780 149.156.74.76 (28 Apr 2000 18:51:50 GMT) Organization: Institute of Physics, Jagellonian University Mime-Version: 1.0 NNTP-Posting-Date: 28 Apr 2000 18:51:50 GMT Newsgroups: comp.sys.dec "Blasutti, Bob [CAR:5Z63:EXCH]" wrote: > I am looking for ways to restrict rsh (remote shell) to within the system > i.e. allow rsh from one 4100 to the other (and vice-versa) using the IP > addresses of the memory channel hubs only. I don't want rsh access to > the 4100s from their respective ethernet interfaces. I am looking for stronger > means than that provided by /etc/hosts.equiv and .rhosts files. > > Outside of an external router/firewall, are there any ways to > do this with Unix 4.0D? Maybe someone knows of a way to > setup gated for this. > > Thanks... > > ...Bob You can use Wietse Venema's TCP wrapper, tcpd. You won't find it on your system, probably, so you'll have to get the source code from the Internet, compile it and install. You can find it at ftp://ftp.agh.edu.pl/pub/security/tcp_wrappers_7.6.tar.gz and thousands of other sites. $ man tcpd TCPD(8) TCPD(8) NAME tcpd - access control facility for internet services DESCRIPTION The tcpd program can be set up to monitor incoming requests for telnet, finger, ftp, exec, rsh, rlogin, tftp, talk, comsat and other services that have a one-to-one mapping onto executable files. The program supports both 4.3BSD-style sockets and System V.4-style TLI. Functionality may be limited when the protocol underneath TLI is not an internet protocol. Operation is as follows: whenever a request for service arrives, the inetd daemon is tricked into running the tcpd program instead of the desired server. tcpd logs the request and does some additional checks. When all is well, tcpd runs the appropriate server program and goes away. Optional features are: pattern-based access control, client username look- ups with the RFC 931 etc. protocol, protection against hosts that pretend to have someone elses host name, and protection against hosts that pretend to have someone elses network address. [...] Grzegorz