From owner-freebsd-questions@FreeBSD.ORG Wed Oct 6 07:42:55 2004 Return-Path: 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 CB16916A4CE for ; Wed, 6 Oct 2004 07:42:55 +0000 (GMT) Received: from outmx006.isp.belgacom.be (outmx006.isp.belgacom.be [195.238.2.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3083E43D2D for ; Wed, 6 Oct 2004 07:42:55 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx006.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i967gmwX026495 for ; Wed, 6 Oct 2004 09:42:49 +0200 (envelope-from ) Received: from lori.mine.nu (87-24.244.81.adsl.skynet.be [81.244.24.87]) with ESMTP id i967giPu026457; Wed, 6 Oct 2004 09:42:44 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 3C6BB388; Wed, 6 Oct 2004 09:42:43 +0200 (CEST) Date: Wed, 6 Oct 2004 09:42:43 +0200 From: Geert Hendrickx To: Ion-Mihai Tetcu Message-ID: <20041006074243.GB46388@lori.mine.nu> References: <1096997448.8587.99.camel@localhost> <4162DDC2.3030803@gmx.net> <20041005224557.22c6334e@it.buh.tecnik93.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005224557.22c6334e@it.buh.tecnik93.com> User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en cc: Benjamin Walkenhorst cc: freebsd-questions@freebsd.org Subject: Re: reverse ssh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 07:42:55 -0000 On Tue, Oct 05, 2004 at 10:45:57PM +0300, Ion-Mihai Tetcu wrote: > > [ please don't loose context ] > > On Tue, 05 Oct 2004 19:45:38 +0200 > Benjamin Walkenhorst wrote: > > > Micah Bushouse wrote: > > > > > I have a BSD box (home) sitting on an apartment complex network > > > (dhcp/nat/firewall) that I don't control. I also have a BSD box (work) > > > with a static IP sitting on my university's network. > > > > > > Is there a way to open a ssh/other connection before I leave for work in > > > the morning (from the home box to the work box), then travel to the > > > university, sit at my desk and use this connection to get a terminal on > > > my home machine? Is there any software out there that addresses this? > > > Ideally it would involve ssh. > > > > You could write a script that sends an email to you every morning > > which contains your IP-address. *Encrypted*, of course!!! > > Since he's home machine is behind a NAT at what would knowing its > (private) ip serve? You could put up some cgi-script on any http-server outside the LAN, which just returns the client's IP address: #!/bin/sh echo "Content-type: text/html; charset=iso-8859-1" echo echo $REMOTE_ADDR In PHP you can do the same with $_SERVER['REMOTE_ADDR']. GH -- :wq