From owner-freebsd-questions@FreeBSD.ORG Tue Dec 18 06:14:37 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53E9316A41B for ; Tue, 18 Dec 2007 06:14:37 +0000 (UTC) (envelope-from ksham.fmc@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 31A2013C458 for ; Tue, 18 Dec 2007 06:14:36 +0000 (UTC) (envelope-from ksham.fmc@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2383228rvb.43 for ; Mon, 17 Dec 2007 22:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=VFp15FEscj9mbP0Y9f7dCAQSNrmMwiYDgfDAm9GcGQc=; b=Y/xFh9MZ+S268K0qwn83WwKbvlhdnt7eBT5BMQyrNgJ2n94ws9jb/2jPH/KYvXnTIoke2bKrGfAA6ZYcDUpkWGY8RJTkkZJusWXil1RnXUL0RDYg6FEDpsaCUTEQhTfE2frqskWySntKBgAhoEy95GsWPEazAEUiI2M635o5QxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Ij67W7MWW9G34JdSsbu6nHcjfY8JPtlEiEcT2Jd3dHrRNt2vi4f+ZfDv9VY1HXG6AW1ZCiKgfNQ6uZfn0TlfPVByU32Q+c2KvCtUaf1vsQ+Z6MHMuvSUE+yFq+ZWNEn7N7j6bZIumXQVC+n6+JXYSqVA0JOhIBX+jV6SffIAqgQ= Received: by 10.141.50.17 with SMTP id c17mr530210rvk.33.1197956871751; Mon, 17 Dec 2007 21:47:51 -0800 (PST) Received: by 10.141.211.21 with HTTP; Mon, 17 Dec 2007 21:47:51 -0800 (PST) Message-ID: Date: Tue, 18 Dec 2007 13:47:51 +0800 From: "sham khalil" To: freebsd@celestial.com, freebsd-questions@freebsd.org In-Reply-To: <20071218040802.GB6678@ayn.mi.celestial.com> MIME-Version: 1.0 References: <340a29540712171957l7b3e426fh9f35051a7bc6d48e@mail.gmail.com> <20071218040802.GB6678@ayn.mi.celestial.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: SSH through port forwarding X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 06:14:37 -0000 On Dec 18, 2007 12:08 PM, Bill Campbell wrote: > On Mon, Dec 17, 2007, Andrew Falanga wrote: > >Hi, > > > >I'm having a difficult time working with my father to get the port > >forwarding working on his Linksys router to forward SSH requests to his > >FreeBSD machine at home. As near as we can figure, it's setup correctly. > >In case anyone here uses this router it is WRT54G and details (including > a > >users manual) can be found at, > > > http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&pagename=Linksys%2FCommon%2FVisitorWrapper&cid=1149562300349 > . > > > >Now, I'm in Idaho and he's in NY (which does make things difficult). Is > >there any special tricks to setting up port forwarding for SSH? Probably > >should have checked this first, but I'm going to go look on the handbook > >too, just to see. > > It should Just Work(tm). I don't have one of those handy, but > port forwarding is generally under the Advanced tab Linksys > routers. It may be called Games or something like that. Forward > port 22, ssh, to the internal IP and save the settings. > > Generally one should have a fixed internal IP for forwarding as > DHCP assigned IP addresses may change. > once you open port 22 to public ip, you'll get people try to bruteforce your machine. if you don't want that set sshd to listen to a higher number like 5522 then forward port 5522 from the router to the internal machines. unfortunately for wrt54g, you can't forward port 5522 to 22 for internal machine. sham khalil