From owner-freebsd-questions Fri Jan 31 10:55:59 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EEB137B401 for ; Fri, 31 Jan 2003 10:55:58 -0800 (PST) Received: from babyruth.hotpop.com (babyruth.hotpop.com [204.57.55.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B53143F43 for ; Fri, 31 Jan 2003 10:55:57 -0800 (PST) (envelope-from kitbsdlists@HotPOP.com) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by babyruth.hotpop.com (Postfix) with SMTP id 73442219C1D for ; Fri, 31 Jan 2003 18:55:31 +0000 (UTC) Received: from fortytwo. (ip68-109-49-234.lu.dl.cox.net [68.109.49.234]) by smtp-2.hotpop.com (Postfix) with SMTP id B79B41B8C30 for ; Fri, 31 Jan 2003 03:54:53 +0000 (UTC) Date: Thu, 30 Jan 2003 16:57:14 -0600 From: kitsune To: freebsd-questions@FreeBSD.ORG Subject: Re: ssh & ipfw Message-Id: <20030130165714.75c5c6a1.kitbsdlists@HotPOP.com> In-Reply-To: References: X-Mailer: Sylpheed version 0.8.3 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Do a man on natd and look at port redirection... To do it in rc.conf you should add to the natd_flag="" line... -redirect_port tcp_or_udp address_of_target_machine:port_on_target_machine incoming_port_on_the_router here is a example here... "-redirect_port tcp 192.168.0.2:22 6822 -redirect_port udp 192.168.0.2:22 6822" what this will do is redirect all tcp/udp packets coming in on port 6822 to 192.168.0.2:22 On Thu, 30 Jan 2003 22:06:45 -0500 Pete C wrote: any quick pointers for how to go about setting up ssh though ipfw on a gateway/router running nat to one of the internal machines ? (FreeBSD on both the router and internal machine) after a quick search of the available resourses (Google/BSD, mail archives, etc) I'm thinking it should be easier that this ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message