From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 29 07:40:32 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B28237B408 for ; Tue, 29 Apr 2003 07:40:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72BAA43FF3 for ; Tue, 29 Apr 2003 07:40:24 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3TEeJUp045015 for ; Tue, 29 Apr 2003 07:40:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3TEeJcs045014; Tue, 29 Apr 2003 07:40:19 -0700 (PDT) Resent-Date: Tue, 29 Apr 2003 07:40:19 -0700 (PDT) Resent-Message-Id: <200304291440.h3TEeJcs045014@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, lars.koeller@uni-bielefeld.de Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EBE537B401 for ; Tue, 29 Apr 2003 07:30:51 -0700 (PDT) Received: from mail.uni-bielefeld.de (mail2.uni-bielefeld.de [129.70.4.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E3E943FA3 for ; Tue, 29 Apr 2003 07:30:49 -0700 (PDT) (envelope-from root@uni-bielefeld.de) Received: from vscan2.hrz.uni-bielefeld.de (vscan2.hrz.uni-bielefeld.de [129.70.4.45]) by mail.uni-bielefeld.de (Sun Internet Mail Server sims.4.0.2000.10.12.16.25.p8) with ESMTP id <0HE400H2S0ANP4@mail.uni-bielefeld.de> for FreeBSD-gnats-submit@freebsd.org; Tue, 29 Apr 2003 16:30:23 +0200 (MET DST) Received: from vscan2.hrz.uni-bielefeld.devscan2.hrz.uni-bielefeld.de (8.12.8p1/8.12.3) with ESMTP id h3TEUMs6012620; Tue, 29 Apr 2003 16:30:22 +0200 Received: (from root@localhost) by vscan2.hrz.uni-bielefeld.de (8.12.8p1/8.12.8/Submit) id h3TEUMJY012619; Tue, 29 Apr 2003 16:30:22 +0200 (CEST) Message-Id: <200304291430.h3TEUMJY012619@vscan2.hrz.uni-bielefeld.de> Date: Tue, 29 Apr 2003 16:30:22 +0200 (CEST) From: lars.koeller@uni-bielefeld.de To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: lars@koellers.net Subject: bin/51586: rsh/rshd connect problem (select: protocol failure in circuit setup) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: lars.koeller@uni-bielefeld.de List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 14:40:33 -0000 >Number: 51586 >Category: bin >Synopsis: rsh/rshd connect problem (select: protocol failure in circuit setup) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 29 07:40:18 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Lars Köller >Release: FreeBSD 4.8-RELEASE i386 >Organization: Computing Center, University of Bielefeld, Germany >Environment: System: FreeBSD vscan2.hrz.uni-bielefeld.de 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Apr 11 12:16:31 CEST 2003 root@vscan2.hrz.uni-bielefeld.de:/usr/src/sys/compile/VSCAN i386 >Description: - The setup is: machine1 (FreeBSD or Solaris 8) connects to maschine2 (FreeBSD) via rsh. On machine1: while true; do /usr/bin/rsh maschine2 -l vscan pwd; ret=$? if [ "$ret" != "0" ]; then echo "Return Code: $ret break fi done - On the comman line one sees: /usr/home/vscan .......... (repeats several hundred times) .......... /usr/home/vscan (hangs, and after 120 seconds) select: protocol failure in circuit setup The rshd logs: Apr 29 16:04:17 vscan2 rshd[2308]: connect second port 623: Operation timed out - inetd is running as: /usr/sbin/inetd -w -W -l -C 256 -c 64 -s 64 -R 0 I tried to start it without -w -W, but this didn't change anything! - inetd.conf for rsh: shell stream tcp nowait/0/0/0 root /usr/libexec/rshd rshd - To avoid a TIME_WAIT blocking of the ip:port quadruple for the connection, which was our first guess, I set on both machines (FreeBSD) sysctl -w net.inet.tcp.msl=300 After this you cant see ant TIME_WAIT backlog with netstat -a (I need a high rsh connection rate, cause it should be used in a farm setup for mail virus scanning). - /etc/hosts.allow rshd: machine1 : allow - ipfw: 73869 : ipfw -ta show 00100 1450976 204275072 Tue Apr 29 16:23:59 2003 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 65000 16410061 6975271579 Tue Apr 29 16:23:59 2003 allow ip from any to any 65535 0 0 allow ip from any to any - When I do the same on machine2 with ..... /usr/bin/rsh localhost -l vscan pwd ...... ..... instead of machine2 (see while loop above) all seems to work properly! It runs and runs and runs >How-To-Repeat: See the above setup/description >Fix: Don't know, but I need one very fast. Any ideas??? -- E-Mail: Lars.Koeller@Uni-Bielefeld.DE \ Lars Köller lkoeller@FreeBSD.org \ CC University of PGP: http://www.uk.pgp.net/pgpnet/wwwkeys.html \ Bielefeld, Germany Key-ID: A430D499 \ Tel: +49 521 106 4964 ----------- FreeBSD, what else? ---- http://www.freebsd.org ------------- >Release-Note: >Audit-Trail: >Unformatted: