Date: Wed, 16 Feb 2000 16:47:47 -0800 (PST) From: Doug Barton <Doug@gorean.org> To: Ian Edwards <ian@concerto.demon.co.uk> Cc: FreeBSD questions <freebsd-questions@FreeBSD.ORG> Subject: Re: IPFW rules for rsh ? Message-ID: <Pine.BSF.4.21.0002161646260.23222-100000@dt051n0b.san.rr.com> In-Reply-To: <XFMail.000216160807.ian@concerto.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0002161646260.23222-100000>