From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,334c1ccd8191c916 X-Google-Attributes: gid10952f,public X-Google-Thread: fee84,334c1ccd8191c916 X-Google-Attributes: gidfee84,public From: nichols@nvl.army.mil (Don Nichols) Subject: Re: Security Problem Date: 1997/04/29 Message-ID: <5k5hkq$1m6$1@izalco.nvl.army.mil>#1/1 X-Deja-AN: 238234274 References: <5jfui3$3ec@vixen.cso.uiuc.edu> <336516c8.87525299@news.netvision.net.il> Organization: U.S. Army Night Vision & Electronic Sensors Reply-To: nichols@nvl.army.mil Newsgroups: comp.unix.osf.osf1,comp.security.unix In article <336516c8.87525299@news.netvision.net.il>, George Berg wrote: >On Mon, 21 Apr 1997 09:47:09 -0500, "Floyd Davenport" > wrote: > >>I'm running DEC Unix 4.0 and I have some friendly folks that have decided >>to >>make use of my system without permission. They are using telnet and ftp to [ ... ] >There are 2 files in /etc directory called hosts.allow , hosts.deny U >have to setup those files if U want to reject connections from >specific hosts , domains . The syntax is simple : Does tcp-wrappers come standard with DEC's version of unix? Those files are part of the installation of tcp-wrappers. You also need to edit /etc/inetd.conf properly so the connection requests are passed to tcpd instead of the usual programs. "tcpd" then decides whether to allow the connection, in which case it passes the connection on to the program specified in /etc/inetd.conf. As an example, on my system (a Sun running Solaris 2.x), I have: telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd While a unwrapped system (or one which hadn't bothered wrapping telnet), would have something like: telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd Only once this is done can the entries in /etc/hosts.deny and /etc/hosts.allow do anything. You'll probably also want to treat various services differently, so instead of using "ALL", you would have an entry for in.telnetd, one for in.ftpd, and for each other service which had specific requirements. Then, you might use an ALL entry to catch anything else which slipped through the cracks. Be sure to run tcpdchk, to get it to pass an opinion on how well configured the files are. Good Luck, DoN. -- DoN Nichols work:nichols@nvl.army.mil (703)704-2280 Disclaimer: No statements herein are to be considered as necessarily representing the opinions of the Department of the Army or Night Vision Labs. Black holes are where GOD is dividing by zero -- (author unknown)