From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ashwin Purohit Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Disabling logins except for specific IPs Date: Thu, 27 Jul 2006 16:50:45 -0400 Message-ID: <92ca6a020607271350r49001c37v42bca44e1cb3d310@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154033501 26577 80.91.229.2 (27 Jul 2006 20:51:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2006 20:51:41 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 27 22:51:36 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1G6CpE-0005HN-4r for gotm-tru64-unix-managers@gmane.org; Thu, 27 Jul 2006 22:51:21 +0200 Original-Received: (qmail 7968 invoked by uid 49509); 27 Jul 2006 20:50:59 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7959 invoked from network); 27 Jul 2006 20:50:59 -0000 Original-Received: from emroute4.ornl.gov (160.91.86.27) by sws1.ornl.gov with SMTP; 27 Jul 2006 20:50:59 -0000 Original-Received: from emroute4.ornl.gov (localhost [127.0.0.1]) by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0J32003BHXWYZN@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 27 Jul 2006 16:50:59 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) id <0J3200502XWNPH@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 27 Jul 2006 16:50:58 -0400 (EDT) Original-Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.207]) by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0J32004AFXWNI8@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 27 Jul 2006 16:50:47 -0400 (EDT) Original-Received: by wx-out-0102.google.com with SMTP id s18so133317wxc for ; Thu, 27 Jul 2006 13:50:46 -0700 (PDT) Original-Received: by 10.70.38.19 with SMTP id l19mr1088025wxl; Thu, 27 Jul 2006 13:50:45 -0700 (PDT) Original-Received: by 10.70.10.7 with HTTP; Thu, 27 Jul 2006 13:50:45 -0700 (PDT) Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: purohit@gmail.com Content-disposition: inline DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QSumLoOxjDA+CgWNfLs38PkqNZ0A32YQJ+xtVW+mVoaSj/IMGP11p6yZLgC/Nd+psU2NaezGMlV9K3phkvxnrfFbxrYtPJQZBz7/uoHXbh+/dKOeosZWucVhmY5GEczFnF+d5y2T3zfN6w64I8l0qxspaKQRi0NAM9gfB0Z/4ec= X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on email.ornl.gov X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DK_SIGNED,HOT_NASTY, SPF_PASS autolearn=ham version=3.1.3 Xref: news.gmane.org gmane.os.tru64.managers:8976 Archived-At: I asked essentially: > What I'm basically looking for is a set of lines (in all files necessary to completely secure the machine) that, in human readable code, says "Allow logins from the following IP addresses only, via terminal, SSH, and everything else: xxx.xxx.xx.xx" for an OSF1 machine. The answer was to install TCP Wrappers, which can be found at ftp://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz. Oisin McGuinness recommends the following, as well: "You then have an extra executable (say tcpd, which say you put in /usr/local/bin/tcpd). Then change every remote login service line in /etc/inetd.conf so that tcpd is invoked 1st, and then it runs the actual program. E.g., if you are using ssh from inetd.conf ssh stream tcp nowait root /usr/local/bin/tcpd sshd -i The access is controlled by two files /etc/hosts.allow /etc/hosts.deny Simplest to have /etc/hosts.deny to deny all access to all services: ALL: ALL as contents, then for each service you want to allow selective access to have a line in /etc/hosts.allow, for example: sshd: LOCAL will allow sshd to be started for connections from locally connected (within same network) machines." Thanks to all who contributed so quickly: Oisin McGuinness A. Mahendra Rajah Chris Eubanks Graham Allan Michael Bucholtz -Ashwin Purohit > Thanks, > Ashwin Purohit > purohit@stanford.edu > -- Ashwin Purohit This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, or are not the named addressee: please notify the sender immediately by e-mail and delete this e-mail from your system, and do not disseminate, distribute or copy this e-mail. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.