From owner-freebsd-questions Wed Feb 16 16:47:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from builder.freebsd.org (builder.FreeBSD.ORG [204.216.27.24]) by hub.freebsd.org (Postfix) with ESMTP id B2C5B37B59B for ; Wed, 16 Feb 2000 16:47:54 -0800 (PST) (envelope-from Doug@gorean.org) Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by builder.freebsd.org (Postfix) with ESMTP id 8DDB6132EB for ; Wed, 16 Feb 2000 16:47:15 -0800 (PST) Received: from slave (slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id QAA23625; Wed, 16 Feb 2000 16:47:50 -0800 (PST) (envelope-from Doug@gorean.org) Date: Wed, 16 Feb 2000 16:47:47 -0800 (PST) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: Ian Edwards Cc: FreeBSD questions Subject: Re: IPFW rules for rsh ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 16 Feb 2000, 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. If you want an actual login shell you will have to pass the actual login shell port. :) I'll give you a hint, it's really close to 514. (/etc/services is your friend) Good luck, Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message