From owner-freebsd-questions Thu Feb 17 20:58:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id E07BC37B5DA for ; Thu, 17 Feb 2000 20:58:44 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id AAA54107; Fri, 18 Feb 2000 00:03:57 -0500 (EST) (envelope-from cjc) Date: Fri, 18 Feb 2000 00:03:57 -0500 From: "Crist J. Clark" To: Ian Edwards Cc: FreeBSD questions Subject: Re: IPFW rules for rsh ? Message-ID: <20000218000357.F53575@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ian@concerto.demon.co.uk on Wed, Feb 16, 2000 at 04:08:07PM -0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Feb 16, 2000 at 04:08:07PM -0000, Ian Edwards wrote: > > Hello, > > can someone help me with the IPFW rules for allowing 'rsh' from > my FreeBSD system (192.168.200.201) to another LAN (192.168.0.0) ? > > I have tried in /etc/rc.firewall, with net2="192.168.0.0" > and mask="255.255.255.0" and ip="192.168.200.201" > > $fwcmd add pass tcp from ${ip} to ${net2}:${mask} 514 > $fwcmd add pass tcp from ${net2}:${mask} 514 to ${ip} setup > $fwcmd add pass tcp from ${net2}:${mask} 514 to ${ip} > > 'rcp' works OK, 'rsh' just hangs. How are you using 'rsh?' Like, % rsh net2-host "echo TEST" Or, % rsh net2-host Look again at rsh(1), If no command is specified, you will be logged in on the remote host us- ing rlogin(1). And from /etc/services, login 513/tcp #remote login a la telnet; tcpdump(1) is your pal. Use it to check where the packets are really going when you do something like that. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message