From owner-freebsd-questions Fri Aug 11 20:40:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 4DCE737B714 for ; Fri, 11 Aug 2000 20:40:54 -0700 (PDT) (envelope-from cjc@149.211.6.64.reflexcom.com) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 11 Aug 2000 20:39:50 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.9.3/8.9.3) id UAA28351; Fri, 11 Aug 2000 20:40:46 -0700 (PDT) (envelope-from cjc) Date: Fri, 11 Aug 2000 20:40:41 -0700 From: "Crist J . Clark" To: Lanny Baron Cc: questions@FreeBSD.ORG Subject: Re: how to get in via ssh to hosts behind firewall running natd Message-ID: <20000811204041.C28027@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from lnb@heretic.cybertouch.org on Fri, Aug 11, 2000 at 07:19:56PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 11, 2000 at 07:19:56PM -0400, Lanny Baron wrote: > Hello, > Can someone please tell me how to set up natd in order that I can ssh to > one of my boxes that is behind an (open) firewall that has boxes running > with 192.168 IP's If it's an "open" firewall, it's not really a firewall, is it? But anyway... You can do it by adding arguments to natd(8) through rc.conf, natd_flags="-redirect_port 192.168.a.b:22 20001" Or by putting the same information in a natd.conf file. Now, to reach that machine via ssh you can, % ssh -p 20001 firewall But be careful if you also ssh to firewall. The two different host keys to what looks to ssh like one host can cause trouble. Nothing a creative .ssh/config won't fix nicely however. -- Crist J. Clark cjclark@alum.mit.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message